windows_programming_notes.nbk: Home | Index | Next Page: sample modal dialog box procedure | Previous Page: sample dialog box callback procedure
The following code creates a modal dialog box:
if (DialogBox(hinst,
MAKEINTRESOURCE(DLG_DELETEITEM),
hwnd, (DLGPROC)DeleteItemProc)==IDOK) {
// Complete the command; szItemName contains the
// name of the item to delete.
}
else {
// Cancel the command.
}
If the value returned from DialogBox is TRUE (1), The action is completed.
windows_programming_notes.nbk: Home | Index | Next Page: sample modal dialog box procedure | Previous Page: sample dialog box callback procedure
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time