13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CreateDialoglndirectParameters hInstance HANDLE Identifies an instance of the module whoseexecutable file contains the dialog-box template.Return valueCommentsIpDialogTemplateLPSTR Points to a block of memory that contains aDLGTEMPLATE data structure.hWndParentIpDialogFuncHWND Identifies the window that owns the dialog box.FARPROC Is the procedure-instance address of the dialogfunction. See the following "Comments" section fordetails.The return value is the window handle of the dialog box. It is NULL if thefunction cannot create either the dialog box or any controls in the dialogbox.Use the WS_ VISIBLE style in the dialog-box template if the dialog boxshould appear in the parent window upon creation.A dialog box can contain up to 255 controls.The callback function must use the Pascal calling convention and must bedeclared FAR.Callbackfunction BaaL FAR PASCAL DialogFunc(hDlg, wMsg, wParam, IParam)HWNDhDlg;WORDwMsg;WORD wParam;DWORD IParam;ParametersDialogFunc is a placeholder for the application-supplied function name.The actual name must be exported by including it in an EXPORTSstatement in the application's module-definition file.hDlgwMsgwParamIParamIdentifies the dialog box that receives the message.Specifies the message number.Specifies 16 bits of additional message-dependentinform a tion.Specifies 32 bits of additional message-dependentinformation.Return valueExcept in response to the WM_INITDIALOG message, the dialog functionshould return nonzero if the function processes the message, and zero if it186 Software development kit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!