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

C / C++ / MFC

 
GeneralRe: Need insight as to how VS2008 parses vcproj files Pin
Mircea Neacsu22-Aug-22 2:45
mvaMircea Neacsu22-Aug-22 2:45 
GeneralRe: Need insight as to how VS2008 parses vcproj files Pin
charlieg22-Aug-22 2:53
Membercharlieg22-Aug-22 2:53 
QuestionDialogBox fuction not executing its procedure [SOLVED] Pin
coco24319-Aug-22 0:39
Membercoco24319-Aug-22 0:39 
AnswerRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 1:38
mveRichard MacCutchan19-Aug-22 1:38 
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 
So you have a macro inside a macro which just makes it worse. I suggest you throw this code (and that book) away and write a proper inline handler. I have just tested your template and it loads the dialog and handles the WM_INITDIALOG message:
C++
INT_PTR CALLBACK DlgProc(
    HWND    hDlg,
    UINT    uMessage,
    WPARAM  wParam,
    LPARAM  lParam
)
{
    switch (uMessage)
    {
    case WM_INITDIALOG:
        return OnInitDialog(hDlg, (HWND)wParam, lParam); // calls the initialization function

    case WM_COMMAND:
        return OnCommand(hDlg, LOWORD(wParam), (HWND)lParam, HIWORD(wParam)); // handles any button etc. messages

    }

    return false; // default processing
}

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 
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 

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.