Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TabControl In MFC Pin
002comp23-Apr-12 0:57
002comp23-Apr-12 0:57 
GeneralRe: TabControl In MFC Pin
Richard MacCutchan23-Apr-12 1:54
mveRichard MacCutchan23-Apr-12 1:54 
GeneralRe: TabControl In MFC Pin
JohnCz24-Apr-12 2:13
JohnCz24-Apr-12 2:13 
QuestionWhat does #pragma pack(0) do Pin
yu-jian22-Apr-12 6:28
yu-jian22-Apr-12 6:28 
AnswerRe: What does #pragma pack(0) do Pin
Chris Losinger22-Apr-12 6:39
professionalChris Losinger22-Apr-12 6:39 
GeneralRe: What does #pragma pack(0) do Pin
Erudite_Eric22-Apr-12 7:52
Erudite_Eric22-Apr-12 7:52 
GeneralRe: What does #pragma pack(0) do Pin
Chris Losinger22-Apr-12 8:15
professionalChris Losinger22-Apr-12 8:15 
GeneralRe: What does #pragma pack(0) do Pin
Erudite_Eric22-Apr-12 22:36
Erudite_Eric22-Apr-12 22:36 
AnswerRe: What does #pragma pack(0) do Pin
Lakamraju Raghuram22-Apr-12 7:47
Lakamraju Raghuram22-Apr-12 7:47 
GeneralRe: What does #pragma pack(0) do Pin
Erudite_Eric22-Apr-12 7:53
Erudite_Eric22-Apr-12 7:53 
GeneralRe: What does #pragma pack(0) do Pin
Lakamraju Raghuram22-Apr-12 8:03
Lakamraju Raghuram22-Apr-12 8:03 
GeneralRe: What does #pragma pack(0) do Pin
Erudite_Eric22-Apr-12 8:12
Erudite_Eric22-Apr-12 8:12 
GeneralRe: What does #pragma pack(0) do Pin
Lakamraju Raghuram22-Apr-12 8:19
Lakamraju Raghuram22-Apr-12 8:19 
GeneralRe: What does #pragma pack(0) do Pin
Erudite_Eric22-Apr-12 22:40
Erudite_Eric22-Apr-12 22:40 
GeneralRe: What does #pragma pack(0) do Pin
yu-jian22-Apr-12 18:01
yu-jian22-Apr-12 18:01 
AnswerRe: What does #pragma pack(0) do Pin
Erudite_Eric22-Apr-12 7:56
Erudite_Eric22-Apr-12 7:56 
QuestionRe: What does #pragma pack(0) do PinPopular
CPallini22-Apr-12 10:43
mveCPallini22-Apr-12 10:43 
AnswerRe: What does #pragma pack(0) do Pin
yu-jian22-Apr-12 18:07
yu-jian22-Apr-12 18:07 
GeneralRe: What does #pragma pack(0) do Pin
enhzflep22-Apr-12 18:16
enhzflep22-Apr-12 18:16 
AnswerRe: What does #pragma pack(0) do Pin
Randor 22-Apr-12 11:30
professional Randor 22-Apr-12 11:30 
GeneralRe: What does #pragma pack(0) do Pin
yu-jian22-Apr-12 20:04
yu-jian22-Apr-12 20:04 
GeneralRe: What does #pragma pack(0) do Pin
Richard MacCutchan22-Apr-12 21:09
mveRichard MacCutchan22-Apr-12 21:09 
GeneralRe: What does #pragma pack(0) do Pin
yu-jian23-Apr-12 2:17
yu-jian23-Apr-12 2:17 
AnswerRe: What does #pragma pack(0) do Pin
Aescleal23-Apr-12 7:13
Aescleal23-Apr-12 7:13 
QuestionDialog Proc, Fire a new thread function after intialization Pin
jkirkerx21-Apr-12 11:45
professionaljkirkerx21-Apr-12 11:45 
I want to click a button, load the dialog with progress bar, run a validator in a new thread, and then close the dialog.

So I used the toolbars WndProc to load DialogBox( sdfsdfsdf
Then in the Dialog Proc, WM_INITDIALOG, created the dialog controls, the dialog box is at top level, and fully painted, the dialog proc exits.

Is there a message sent after the dialog box intializes and loads, that I can capture so I can send the next message to run the validator?

I tried adding the SendMessage to the end of the WM_INITDIALOG, but the box won't show until the validator exits. Bad Idea.


C#
switch (message) {
        case WM_INITDIALOG:
            {
                _project_SQLExplorer_Dialog_hWnd = hWndDlg;
                _project_SQLExplorer_Dialog_Validate_CreateControls( hWndDlg );
                return (INT_PTR)FALSE;
            }

        case WM_ENTERIDLE:
            SendMessage( hWndProject_SQLExplorer, WM_COMMAND, (WPARAM) IDM_SQL_EXPLORER_VALIDATE_START, (LPARAM) 0 );
            break;

        case WM_COMMAND:
            switch LOWORD(wParam) {

                case IDCANCEL:
                    EndDialog(hWndDlg, LOWORD(wParam));
                    return (INT_PTR)TRUE;

            }
            break;

        case WM_PAINT:
            _project_SQLExplorer_Dialog_Validate_Paint( hWndDlg );
            break;

        case WM_CLOSE:
            EndDialog( hWndDlg, 0 );
            break;
        }

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.