windows_programming_notes.nbk: Home | Index | Next Page: DialogBox | Previous Page: DestroyWindow


 dialog box creation

Use DialogBoxParam to create a dialog box, and pass a application-defined value as the lParam parameter of the WM_INITDIALOG message;

    result = DialogBoxParam(g.hinstance, "racl_arg_dialog", 
                    hwnd, racl_arg_dialog_procedure, (LPARAM)&arg_data);

In this case, arg_data is a struct or class containing the information the dialog box acts on.

See Also:


windows_programming_notes.nbk: Home | Index | Next Page: DialogBox | Previous Page: DestroyWindow


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time