Click here to Skip to main content
15,887,330 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC child modal CDialog appears in the task bar. ? Pin
«_Superman_»24-Nov-09 12:49
professional«_Superman_»24-Nov-09 12:49 
GeneralRe: MFC child modal CDialog appears in the task bar. ? Pin
Maximilien26-Nov-09 3:34
Maximilien26-Nov-09 3:34 
Questionwher should be a modeless dialog box be created Pin
Sujay chakraborty24-Nov-09 8:04
Sujay chakraborty24-Nov-09 8:04 
AnswerRe: wher should be a modeless dialog box be created Pin
«_Superman_»24-Nov-09 8:10
professional«_Superman_»24-Nov-09 8:10 
GeneralRe: wher should be a modeless dialog box be created Pin
Sujay chakraborty25-Nov-09 7:11
Sujay chakraborty25-Nov-09 7:11 
GeneralRe: wher should be a modeless dialog box be created Pin
Tim Craig25-Nov-09 9:29
Tim Craig25-Nov-09 9:29 
QuestionRe: wher should be a modeless dialog box be created Pin
Sujay chakraborty30-Nov-09 20:04
Sujay chakraborty30-Nov-09 20:04 
AnswerRe: wher should be a modeless dialog box be created Pin
Tim Craig30-Nov-09 20:58
Tim Craig30-Nov-09 20:58 
The lifetime of the modeless dialog only has to be the duration that you want it directly available to the user. Some people do this by keeping it available the lifetime of the application and hide it when it's not needed. Others create it on the heap when the user wants it and then destroy it when the user is done. If you have several of them, it goes a little lighter on your resources.

If you put it on the stack, you need to be very careful about how it's scoped. This limits where it can be done in your typical application as it will be destroyed if it goes out of scope.

Scope is about visibility, if it's "locally" static, that kind of implies its visibility is limited. Either to a particular file or even a single function. If you mean a class static, that has a slightly different meaning. The storage exists for the life of the program and scoping is controlled by the class name. Of course, you can make static data available outside their primary scope in various ways.

You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

QuestionDefault data in data tab of combo box not working Pin
Sujay chakraborty24-Nov-09 8:00
Sujay chakraborty24-Nov-09 8:00 
AnswerRe: Default data in data tab of combo box not working Pin
«_Superman_»24-Nov-09 8:16
professional«_Superman_»24-Nov-09 8:16 
QuestionRe: Default data in data tab of combo box not working Pin
David Crow24-Nov-09 16:56
David Crow24-Nov-09 16:56 
AnswerRe: Default data in data tab of combo box not working Pin
Sujay chakraborty25-Nov-09 7:05
Sujay chakraborty25-Nov-09 7:05 
QuestionRe: Default data in data tab of combo box not working Pin
David Crow30-Nov-09 3:36
David Crow30-Nov-09 3:36 
AnswerRe: Default data in data tab of combo box not working Pin
Sujay chakraborty30-Nov-09 19:57
Sujay chakraborty30-Nov-09 19:57 
QuestionCompare two images Pin
franckesh24-Nov-09 6:45
franckesh24-Nov-09 6:45 
NewsRe: Compare two images - repost Pin
Iain Clarke, Warrior Programmer24-Nov-09 7:36
Iain Clarke, Warrior Programmer24-Nov-09 7:36 
AnswerRe: Compare two images Pin
Maximilien24-Nov-09 7:42
Maximilien24-Nov-09 7:42 
GeneralRe: Compare two images Pin
franckesh25-Nov-09 0:38
franckesh25-Nov-09 0:38 
GeneralRe: Compare two images Pin
David Crow24-Nov-09 16:58
David Crow24-Nov-09 16:58 
QuestionSimple URL redirection proxy Pin
CodingLover24-Nov-09 5:31
CodingLover24-Nov-09 5:31 
QuestionRe: Simple URL redirection proxy Pin
CodingLover24-Nov-09 16:24
CodingLover24-Nov-09 16:24 
QuestionNeed to call (ODBC) Data Source Administrator dialog screen while installing my MSI .( in VS 2005) Pin
jain_MS24-Nov-09 5:28
jain_MS24-Nov-09 5:28 
AnswerRe: Need to call (ODBC) Data Source Administrator dialog screen while installing my MSI .( in VS 2005) Pin
Frank Seidler24-Nov-09 9:25
Frank Seidler24-Nov-09 9:25 
GeneralRe: Need to call (ODBC) Data Source Administrator dialog screen while installing my MSI .( in VS 2005) Pin
jain_MS25-Nov-09 0:13
jain_MS25-Nov-09 0:13 
QuestionQuestion about an BYTE value changing into pointer, then array Pin
yeah100024-Nov-09 4:57
yeah100024-Nov-09 4:57 

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.