Click here to Skip to main content
15,908,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Word Automation Pin
Anonymous13-Jan-03 20:40
Anonymous13-Jan-03 20:40 
GeneralMAC based Firewall Pin
summo13-Jan-03 18:11
summo13-Jan-03 18:11 
GeneralRe: MAC based Firewall Pin
Dana Epp15-Jan-03 9:02
Dana Epp15-Jan-03 9:02 
Generalproblem in debugging VC 6 code in windows xp Pin
r i s h a b h s13-Jan-03 16:45
r i s h a b h s13-Jan-03 16:45 
General*.pck file Pin
:_Rocket_:13-Jan-03 16:04
:_Rocket_:13-Jan-03 16:04 
GeneralRe: *.pck file Pin
Taka Muraoka13-Jan-03 17:38
Taka Muraoka13-Jan-03 17:38 
GeneralRe: *.pck file Pin
Ted Ferenc13-Jan-03 22:54
Ted Ferenc13-Jan-03 22:54 
Generalmodeless dialog(rather long story), I appreciate Pin
Anonymous13-Jan-03 15:29
Anonymous13-Jan-03 15:29 
What I want
(1)I create a modeless dialog like the following code. See, MainWndProc triggers a modeless dialog "Data", and "Data" triggers another and destroy itself...
Main->Data->Intro->Exper
(2)I want response to key 'A' always to be processed in the dialog function "Parameter_Window_Exper".
What it does now
(1). "Intro" can't be displayed. Why?
(2). 'A' is taken care by MainWndProc still when "Data" has been triggered.

LRESULT CALLBACK MainWndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
case WM_CREATE:
hwnddlg = CreateDialog(app_instance, "PARAMETER_WINDOW_DATA", hwnd, (DLGPROC) Parameter_Window_Data);
break;

case WM_CHAR:
switch(wParam) {
case 'A':
MessageBox(hwnd, "top box","response A", MB_OK);//for temporary test
break;
...
}

BOOL CALLBACK Parameter_Window_Data(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
case IDC_OK:
hwnddlg = CreateDialog(app_instance, EXPER_INTRO_DIALOG, hWnd, (DLGPROC) Parameter_Window_Intro_Func);
DestroyWindow(hWnd);

....
}


BOOL Parameter_Window_Intro(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
case IDC_TRAIN_DONE:
DestroyWindow(hWnd);
hwnddlg = CreateDialog(app_instance, "EURO_PAIR", hWnd, (DLGPROC) Parameter_Window_Exper);

}
BOOL CALLBACK Parameter_Window_Exper(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam)
{

case WM_CHAR:
switch(char(wParam))
{
case 'A':
MessageBox(hWnd, "dialog box", "correct A response", MB_OK);
break;
}
....
}


GeneralRe: modeless dialog(rather long story), I appreciate Pin
Joaquín M López Muñoz13-Jan-03 20:58
Joaquín M López Muñoz13-Jan-03 20:58 
GeneralRe: modeless dialog(rather long story), I appreciate Pin
Hans Ruck13-Jan-03 22:02
Hans Ruck13-Jan-03 22:02 
GeneralRe: modeless dialog(rather long story), I appreciate Pin
Anonymous14-Jan-03 3:53
Anonymous14-Jan-03 3:53 
GeneralRe: modeless dialog(rather long story), I appreciate Pin
Hans Ruck14-Jan-03 5:14
Hans Ruck14-Jan-03 5:14 
GeneralRe: modeless dialog(rather long story), I appreciate Pin
Anonymous14-Jan-03 5:25
Anonymous14-Jan-03 5:25 
GeneralRe: modeless dialog(rather long story), I appreciate Pin
Hans Ruck14-Jan-03 5:44
Hans Ruck14-Jan-03 5:44 
GeneralRe: modeless dialog(rather long story), I appreciate Pin
Anonymous14-Jan-03 10:11
Anonymous14-Jan-03 10:11 
GeneralRe: modeless dialog(rather long story), I appreciate Pin
Anonymous14-Jan-03 11:29
Anonymous14-Jan-03 11:29 
GeneralText outline help. Pin
clintsinger13-Jan-03 13:35
clintsinger13-Jan-03 13:35 
GeneralSpelling help! Pin
clintsinger13-Jan-03 13:36
clintsinger13-Jan-03 13:36 
GeneralC++ Encryption question Pin
Anonymous13-Jan-03 10:53
Anonymous13-Jan-03 10:53 
GeneralRe: C++ Encryption question Pin
Chris Losinger13-Jan-03 10:58
professionalChris Losinger13-Jan-03 10:58 
GeneralRe: C++ Encryption question Pin
Anonymous13-Jan-03 11:39
Anonymous13-Jan-03 11:39 
GeneralRe: C++ Encryption question Pin
Paul M Watt13-Jan-03 11:52
mentorPaul M Watt13-Jan-03 11:52 
GeneralRe: C++ Encryption question Pin
Chris Richardson13-Jan-03 11:50
Chris Richardson13-Jan-03 11:50 
Generalfew hints about GetWindowPlacement Pin
ns13-Jan-03 10:24
ns13-Jan-03 10:24 
GeneralRe: few hints about GetWindowPlacement Pin
Alvaro Mendez13-Jan-03 10:53
Alvaro Mendez13-Jan-03 10:53 

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.