Code:
FUNCTION DialogProc (BYVAL CBHNDL AS LONG, BYVAL CBMSG AS LONG,_ BYVAL CBWPARAM AS LONG, BYVAL CBLPARAM AS LONG) AS LONG
Of course to complete the CBxxx functions you'll need a couple of MACROs...
Code:
MACRO CBCTL = LOWRD(CBWPARAM) MACRO CBCTLMSG = HIWRD(CBWPARAM)
No, you may not use "CALLBACK FUNCTION" with other window procedures... it may "work" but since it's proprietary AND the doc says the CALLBACK FUNCTION is reserved for procedures used in the CALLBACK option of either CONTROL ADD or DIALOG SHOW, that would be a pure crapshoot.
ALSO, CBHNDL is always a handle to the owner window, so using "CALLBACK FUNCTION" syntax for a subclass procedure would always result in the wrong "hwnd" value when "CBHNDL" is used therein.
MCM
Leave a comment: