-
-
还是WINDOWINFO的问题[求助]
-
发表于:
2006-6-19 14:05
5252
-
;swidth,sheight,dwidth,dheight类型均为dd
invoke GetSystemMetrics,SM_CXSCREEN
mov swidth,eax
invoke GetSystemMetrics,SM_CYSCREEN
mov sheight,eax
invoke GetWindowInfo,hWnd,addr myinfo
mov dwidth,myinfo.cxWindowBorders ;*
;编译器提invalid instruction operands,在*这两个mov
mov dheight,myinfo.cyWindowBorders ;*
我尝试
mov dwidth,DWORD PTR myinfo.cxWindowBorders
mov dwidth,DWORD PTR myinfo.cyWindowBorders
仍然出错
为了方便测试,这是上次小虾版主给出的定义,直接复制到MASM32就可以了
tagWINDOWINFO STRUCT
cbSize DWORD ?
rcWindow RECT <>
rcClient RECT <>
dwStyle DWORD ?
dwExStyle DWORD ?
dwOtherStuff DWORD ?
cxWindowBorders UINT ?
cyWindowBorders UINT ?
atomWindowType ATOM ?
wCreaaorVersion WORD ?
tagWINDOWINFO ENDS
WINDOWINFO EQU <tagWINDOWINFO>
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!