Click here to Skip to main content
15,498,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 2:14
Membercoco24319-Aug-22 2:14 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 2:47
mveRichard MacCutchan19-Aug-22 2:47 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 3:03
Membercoco24319-Aug-22 3:03 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 3:29
mveRichard MacCutchan19-Aug-22 3:29 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 3:57
Membercoco24319-Aug-22 3:57 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 4:20
Membercoco24319-Aug-22 4:20 
SuggestionRe: DialogBox fuction not executing its procedure Pin
David Crow19-Aug-22 5:34
MemberDavid Crow19-Aug-22 5:34 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 5:40
mveRichard MacCutchan19-Aug-22 5:40 
Change this:
C++
SetDlgMsgResult(hwnd, uMsg, HANDLE_WM_INITDIALOG(hwnd, wParam, lParam, Dlg_OnInitDialog));

to this
C++
HANDLE_WM_INITDIALOG(hwnd, wParam, lParam, Dlg_OnInitDialog);
return TRUE;

You only need to set a dialog result when you exit for the last time. And unless you need the result in your calling code then it is best to do nothing.

I think this book is so far behind the times that it is teaching you the wrong things, and the wrong way to do things.
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 6:15
Membercoco24319-Aug-22 6:15 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 6:52
mveRichard MacCutchan19-Aug-22 6:52 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 7:16
Membercoco24319-Aug-22 7:16 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 9:09
mveRichard MacCutchan19-Aug-22 9:09 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24320-Aug-22 0:47
Membercoco24320-Aug-22 0:47 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan20-Aug-22 0:58
mveRichard MacCutchan20-Aug-22 0:58 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24320-Aug-22 1:06
Membercoco24320-Aug-22 1:06 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan21-Aug-22 2:56
mveRichard MacCutchan21-Aug-22 2:56 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24321-Aug-22 8:51
Membercoco24321-Aug-22 8:51 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan21-Aug-22 10:03
mveRichard MacCutchan21-Aug-22 10:03 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24321-Aug-22 11:16
Membercoco24321-Aug-22 11:16 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24322-Aug-22 10:58
Membercoco24322-Aug-22 10:58 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan22-Aug-22 22:22
mveRichard MacCutchan22-Aug-22 22:22 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan23-Aug-22 1:23
mveRichard MacCutchan23-Aug-22 1:23 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24323-Aug-22 7:30
Membercoco24323-Aug-22 7:30 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan20-Aug-22 0:14
mveRichard MacCutchan20-Aug-22 0:14 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 5:48
mveRichard MacCutchan19-Aug-22 5:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.