Click here to Skip to main content
15,881,380 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need insight as to how VS2008 parses vcproj files Pin
charlieg22-Aug-22 1:53
charlieg22-Aug-22 1:53 
AnswerRe: Need insight as to how VS2008 parses vcproj files Pin
charlieg28-Mar-23 9:40
charlieg28-Mar-23 9:40 
QuestionDialogBox fuction not executing its procedure [SOLVED] Pin
coco24318-Aug-22 23:39
coco24318-Aug-22 23:39 
AnswerRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 0:38
mveRichard MacCutchan19-Aug-22 0:38 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 1:14
coco24319-Aug-22 1:14 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 1:47
mveRichard MacCutchan19-Aug-22 1:47 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 2:03
coco24319-Aug-22 2:03 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 2:29
mveRichard MacCutchan19-Aug-22 2: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 2:57
coco24319-Aug-22 2:57 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 3:20
coco24319-Aug-22 3:20 
SuggestionRe: DialogBox fuction not executing its procedure Pin
David Crow19-Aug-22 4:34
David Crow19-Aug-22 4:34 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 4:40
mveRichard MacCutchan19-Aug-22 4:40 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 5:15
coco24319-Aug-22 5:15 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 5:52
mveRichard MacCutchan19-Aug-22 5:52 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 6:16
coco24319-Aug-22 6:16 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 8:09
mveRichard MacCutchan19-Aug-22 8:09 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24319-Aug-22 23:47
coco24319-Aug-22 23:47 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 23:58
mveRichard MacCutchan19-Aug-22 23:58 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24320-Aug-22 0:06
coco24320-Aug-22 0:06 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan21-Aug-22 1:56
mveRichard MacCutchan21-Aug-22 1:56 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24321-Aug-22 7:51
coco24321-Aug-22 7:51 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan21-Aug-22 9:03
mveRichard MacCutchan21-Aug-22 9:03 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24321-Aug-22 10:16
coco24321-Aug-22 10:16 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24322-Aug-22 9:58
coco24322-Aug-22 9:58 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan22-Aug-22 21:22
mveRichard MacCutchan22-Aug-22 21: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.