Click here to Skip to main content
15,886,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to start an application and wait for its end Pin
John R. Shaw3-Jan-04 4:50
John R. Shaw3-Jan-04 4:50 
GeneralRe: how to start an application and wait for its end Pin
gaxxx3-Jan-04 5:12
gaxxx3-Jan-04 5:12 
GeneralWebbrowser control unexpected behaviour Pin
blindcop3-Jan-04 1:59
blindcop3-Jan-04 1:59 
GeneralRe: Webbrowser control unexpected behaviour Pin
John R. Shaw3-Jan-04 2:36
John R. Shaw3-Jan-04 2:36 
GeneralRe: Webbrowser control unexpected behaviour Pin
blindcop3-Jan-04 2:52
blindcop3-Jan-04 2:52 
GeneralRe: Webbrowser control unexpected behaviour Pin
John R. Shaw3-Jan-04 3:20
John R. Shaw3-Jan-04 3:20 
QuestionHow to make apply different form designs to a dialog Pin
blindcop3-Jan-04 1:56
blindcop3-Jan-04 1:56 
AnswerRe: How to make apply different form designs to a dialog Pin
John R. Shaw3-Jan-04 2:27
John R. Shaw3-Jan-04 2:27 
It sounds like you could just design 2 different dialogs containing the same controls with a different layout for both. You just needed to design your CDialog derived classes constructor to take an resource ID and maintian a variable some where that holds the curent ID to use.

There is the second option of placing the controls on top of each other and give them IDs like IDC_LISTBOX1, IDC_LISTBOX2. Then show controls with IDs ending with 1 when box is unchecked and show controls with IDs ending with 2 when box is checked. I see problems with this method: (1) you need to create 2 version of each command handler for each ID (1 & 2) [or manualy change the message map to direct commands to the same handle], (2) the more compact layout will probably require a dialog size change.

INTP
GeneralRe: How to make apply different form designs to a dialog Pin
blindcop3-Jan-04 2:54
blindcop3-Jan-04 2:54 
GeneralRe: How to make apply different form designs to a dialog Pin
John R. Shaw3-Jan-04 3:33
John R. Shaw3-Jan-04 3:33 
GeneralAddress Bar Pin
Prakash Nadar3-Jan-04 0:57
Prakash Nadar3-Jan-04 0:57 
GeneralI need EasyCalulator code! Pin
shenziyang2-Jan-04 20:17
shenziyang2-Jan-04 20:17 
GeneralRe: I need EasyCalulator code! Pin
l a u r e n2-Jan-04 21:32
l a u r e n2-Jan-04 21:32 
GeneralRe: I need EasyCalulator code! Pin
ParimalVPatel3-Jan-04 1:03
ParimalVPatel3-Jan-04 1:03 
GeneralRe: I need EasyCalulator code! Pin
Roger Wright3-Jan-04 5:34
professionalRoger Wright3-Jan-04 5:34 
GeneralRe: I need EasyCalulator code! Pin
Selvam R2-Jan-04 22:00
professionalSelvam R2-Jan-04 22:00 
GeneralRe: I need EasyCalulator code! Pin
User 66582-Jan-04 22:59
User 66582-Jan-04 22:59 
Generalurgently required Pin
Shanmukh2-Jan-04 19:06
Shanmukh2-Jan-04 19:06 
GeneralRe: urgently required Pin
l a u r e n2-Jan-04 21:31
l a u r e n2-Jan-04 21:31 
Generalurgently required Pin
shanmuk2-Jan-04 19:03
shanmuk2-Jan-04 19:03 
GeneralCOM errors Pin
Prakash Nadar2-Jan-04 18:41
Prakash Nadar2-Jan-04 18:41 
GeneralRe: COM errors Pin
Abhishek Srivastava2-Jan-04 18:56
Abhishek Srivastava2-Jan-04 18:56 
GeneralRe: COM errors Pin
Prakash Nadar2-Jan-04 19:22
Prakash Nadar2-Jan-04 19:22 
Generalradio button states Pin
coda_x2-Jan-04 16:54
coda_x2-Jan-04 16:54 
GeneralRe: radio button states Pin
l a u r e n2-Jan-04 18:23
l a u r e n2-Jan-04 18:23 

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.