b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

modifystyleex_ws_ex_appwindow_mfc隐藏EXE的图标(3)

电脑杂谈  发布时间:2017-02-06 22:18:31  来源:网络整理

show(hwnd,__/*可选输入显示参数*/)=显示窗口,可选输入以_SW_为前缀的显示参数

show(hwnd,false)=隐藏窗口

close(__/*输入窗口句柄*/)=关闭窗口

enable(__/*输入窗口句柄*/,true)=启用窗口

enable(__/*输入窗口句柄*/,false)=禁用窗口

setTop(__/*输入窗口句柄*/)=前置窗口到当前线程Z序顶部

setForeground(__/*输入窗口句柄*/)=前置窗口

getForeground()=获取前台窗口句柄

getActive()=获取当前线程激活窗口句柄,如果要获取全局激活窗口请使用win.getForeground()

setActive(__/*输入窗口句柄*/)=设置激活窗口

getFocus()=获取窗入焦点所在窗口句柄

setFocus(__/*输入窗口句柄*/)=设置输入焦点

getDesktop()=获取桌面句柄

setTopmost(__/*输入窗口句柄*/)=置顶窗口

setTopmost(__/*输入窗口句柄*/,false)=取消置顶窗口

find(.(类名,标题)=查找顶层窗口,参数都是可选参数

findEx(.(父窗口句柄,上一个窗口句柄,类名,标题)=查找子窗口\n除父窗口句柄以外,其他参数都是可选参数

endintellisense**/

setPos=function(hwnd,x,y,cx,cy,after,flag=0){

if((x===null)||(y===null)){

flag|=0x2/*_SWP_NOMOVE*/

x,y=0,0;

}

if((cx===null)||(cy===null)){

flag|=0x1/*_SWP_NOSIZE*/

cx,cy=0,0;

}

if(after===null){

flag|=0x4/*_SWP_NOZORDER*/

after=0;

}

SetWindowPos(hwnd,after,x,y,cx,cy,flag);

}

//ptConv不得传出外部

varptConv=POINT();

toScreen=function(hwnd,x,y){

ptConv.x=x;

ptConv.y=y;

ClientToScreen(hwnd,ptConv);

returnptConv.x,ptConv.y;

}

toClient=function(hwnd,x,y){

ptConv.x=x;

ptConv.y=y;

ScreenToClient(hwnd,ptConv);

returnptConv.x,ptConv.y;

}

varconverRect=function(conv,parent,rc){

ptConv.x=rc.right;

ptConv.y=rc.bottom;

conv(parent,rc);

conv(parent,ptConv);

rc.right=ptConv.x;

rc.bottom=ptConv.y;

returnrc;

}

toScreenRect=function(parent,rc){

returnconverRect(ClientToScreen,parent,rc);

}

toClientRect=function(parent,rc){

returnconverRect(ScreenToClient,parent,rc);

}

//返回窗口的相对坐标

getRect=function(hwnd,scr){

varrc=RECT();


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-30959-3.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...