Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: using the MessageBox:: function Pin
kitty514-Jun-06 5:10
kitty514-Jun-06 5:10 
Questionget background color Pin
ns14-Jun-06 4:27
ns14-Jun-06 4:27 
AnswerRe: get background color Pin
Viorel.14-Jun-06 4:37
Viorel.14-Jun-06 4:37 
GeneralRe: get background color Pin
Michael Dunn14-Jun-06 18:39
sitebuilderMichael Dunn14-Jun-06 18:39 
GeneralRe: get background color Pin
Viorel.14-Jun-06 20:42
Viorel.14-Jun-06 20:42 
QuestionNeed Some Advice on Mutating Dialogs Pin
Jethro6314-Jun-06 4:23
Jethro6314-Jun-06 4:23 
AnswerRe: Need Some Advice on Mutating Dialogs Pin
David Crow14-Jun-06 5:02
David Crow14-Jun-06 5:02 
AnswerRe: Need Some Advice on Mutating Dialogs Pin
James R. Twine14-Jun-06 6:11
James R. Twine14-Jun-06 6:11 
   One of the ways is to dump all possible controls onto the dialog template (as suggested).  To make this easier, create several arrays that contain the control IDs for each specific collection/selection, and then loop through them to show/hide/enable/disable as required.  (Tip: use CWnd::SetRedraw( FALSE ) to disable drawing while you do this and CWnd::SetRedraw( TRUE ) followed by CWnd::RedrawWindow() to enable it after to prevent flickering.)

   Another thing to do which is easier especially if you have lots of controls and you have to make sure they all have the correct tab order is to create several dialog templates, one for each collection/selection, and dynamically show/hide them as "floating" modeless dialogs.

   This also makes it easier to place a collection/selection's specific functionality into its own file (one per dialog template).

   You have to be careful of placement so things like moving the parent automatically moves the floating dialogs, and have to do a little work to make sure users can tab into and out of the active floating dialog correctly, but it might be easier and/or cleaner depending on your situation.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
AnswerRe: Need Some Advice on Mutating Dialogs Pin
Wes Aday14-Jun-06 7:08
professionalWes Aday14-Jun-06 7:08 
AnswerRe: Need Some Advice on Mutating Dialogs Pin
Jethro6314-Jun-06 9:27
Jethro6314-Jun-06 9:27 
QuestionDetecting Loss of Client With CSockets Pin
softwaremonkey14-Jun-06 4:21
softwaremonkey14-Jun-06 4:21 
AnswerRe: Detecting Loss of Client With CSockets Pin
Neil Van Eps14-Jun-06 6:07
Neil Van Eps14-Jun-06 6:07 
GeneralRe: Detecting Loss of Client With CSockets Pin
softwaremonkey14-Jun-06 6:56
softwaremonkey14-Jun-06 6:56 
GeneralRe: Detecting Loss of Client With CSockets Pin
JonEngle14-Jun-06 11:02
JonEngle14-Jun-06 11:02 
QuestionCreateProcess Redirect output [modified] Pin
nmx_de14-Jun-06 4:06
nmx_de14-Jun-06 4:06 
GeneralRe: CreateProcess Redirect output Pin
Laxman Auti14-Jun-06 4:11
Laxman Auti14-Jun-06 4:11 
GeneralRe: CreateProcess Redirect output Pin
nmx_de14-Jun-06 4:19
nmx_de14-Jun-06 4:19 
AnswerRe: CreateProcess Redirect output Pin
Laxman Auti14-Jun-06 4:28
Laxman Auti14-Jun-06 4:28 
GeneralRe: CreateProcess Redirect output Pin
Cedric Moonen14-Jun-06 4:42
Cedric Moonen14-Jun-06 4:42 
GeneralRe: CreateProcess Redirect output Pin
nmx_de14-Jun-06 4:45
nmx_de14-Jun-06 4:45 
AnswerRe: CreateProcess Redirect output Pin
Laxman Auti14-Jun-06 17:52
Laxman Auti14-Jun-06 17:52 
AnswerRe: CreateProcess Redirect output Pin
David Crow14-Jun-06 5:04
David Crow14-Jun-06 5:04 
AnswerRe: CreateProcess Redirect output Pin
Michael Dunn14-Jun-06 18:43
sitebuilderMichael Dunn14-Jun-06 18:43 
QuestionRe: CreateProcess Redirect output Pin
nmx_de15-Jun-06 3:50
nmx_de15-Jun-06 3:50 
QuestionTextOut of CDC Pin
ns14-Jun-06 3:54
ns14-Jun-06 3:54 

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.