prop_clienthandle.htm
Navigation: Language Reference > App C - PROP: Runtime Properties > Complete Property List >====== PROP:ClientHandle ====== | |
WINDOW property which returns the client window handle (the area of the window that contains the controls) for use with low-level Windows API calls that require it. (READ-ONLY)
Example:
WinView WINDOW('View'),AT(0,0,320,200),MDI,MAX,HVSCROLL |
END |
MessageText CSTRING('You cannot exit the program from this window ') |
MessageCaption CSTRING('No EVENT:CloseDown Allowed ') |
TextAddr LONG |
CaptionAddr LONG |
RetVal SHORT |
CODE |
OPEN(WinView) |
ACCEPT |
CASE EVENT() |
OF EVENT:CloseDown |
TextAddr = ADDRESS(MessageText) |
CaptionAddr = ADDRESS(MessageCaption) |
RetVal = MessageBox(WinView{PROP:ClientHandle},TextAddr,CaptionAddr,MB_OK) |
!Windows API call using a window handle |
CYCLE !Disallow program closedown from this window |
END |
END |
prop_clienthandle.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1