| **Navigation:**  [[introduction.htm|Language Reference]] > [[chapter runtime properties.htm|App C - PROP: Runtime Properties]] > Complete Property List >====== PROP:ClientHandle ====== | [[prop choicefeq.htm|{{btn_prev_n.gif|Previous page}}]][[chapter runtime properties.htm|{{btn_home_n.gif|Return to chapter overview}}]][[prop clientheight.htm|{{btn_next_n.gif|Next page}}]] | | || 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** | | **!**************************************************** | | **  hDC = GetDC(Window{****PROP:ClientHandle****}) ** | | **  DO DrawStuff** | | **  ReleaseDC(Window{****PROP:ClientHandle****}, hDC)** | **See Also:** [[prop handle.htm|PROP:Handle]]