SHOW statement
Purpose: SHOW displays the control.
Syntax 1: SHOW(hWnd) Parameters:
|
Example:
'-------------------------------------------------------' Written by Mike Sanders' BCX Flip v1.00 2005/08/15'-------------------------------------------------------GUI"BCX Flip",PIXELSDIMRAWx,yASLONGDIMhFormASHWNDDIMhdcFormASHDCDIMhdcPaintASHDCDIMhdcDeskASHDCDIMpsPaintASPAINTSTRUCTSUBFormLoad()x=GetSystemMetrics(SM_CXSCREEN)y=GetSystemMetrics(SM_CYSCREEN)hForm=BCX_FORM(0,0,0,x,y,WS_POPUP)hdcDesk=GETBMP(0,0,x,y,GetDesktopWindow())hdcForm=GetDC(hForm)SHOW(hForm)SendMessage(hForm,WM_PAINT,0,0)ENDSUBBEGINEVENTSSELECTCASECBMSGCASEWM_PAINT hdcPaint=BeginPaint(hForm,&psPaint)StretchBlt(hdcForm,0,y,x,-y,hdcDesk,0,0,x,y,SRCCOPY)EndPaint(hForm,&psPaint)CASEWM_KEYDOWN: Done()CASEWM_DESTROY: PostQuitMessage(0)ENDSELECTENDEVENTSSUBDone()MSGBOX"Gotcha! =)","BCX Flip"DeleteDC(hdcDesk)DeleteDC(hdcForm)DestroyWindow(hForm)ENDSUB
HIDE statement
Purpose: HIDE hides the control.
Syntax 1: HIDE(hWnd) Parameters:
|
Example:
HIDE(Form1)
For an example of the HIDE statement see Demo.bas in the BCX\Gui_Demo\EZ_Gui folder.