Click here to Skip to main content
15,916,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionManaging DoubleClick in CListCtrl with scrollbars Pin
doctorpi20-Dec-06 2:50
doctorpi20-Dec-06 2:50 
AnswerRe: Managing DoubleClick in CListCtrl with scrollbars Pin
James R. Twine20-Dec-06 3:25
James R. Twine20-Dec-06 3:25 
GeneralRe: Managing DoubleClick in CListCtrl with scrollbars Pin
doctorpi20-Dec-06 3:26
doctorpi20-Dec-06 3:26 
QuestionProblem in TreeControl Pin
Krishnatv20-Dec-06 2:17
Krishnatv20-Dec-06 2:17 
AnswerRe: Problem in TreeControl Pin
AJarrett20-Dec-06 4:03
AJarrett20-Dec-06 4:03 
AnswerRe: Problem in TreeControl Pin
prasad_som20-Dec-06 19:40
prasad_som20-Dec-06 19:40 
QuestionQuestion about MFC Application ? Pin
Sakthiu20-Dec-06 1:59
Sakthiu20-Dec-06 1:59 
AnswerRe: Question about MFC Application ? Pin
James R. Twine20-Dec-06 2:18
James R. Twine20-Dec-06 2:18 
   I believe that this is the default behavior for COM Servers.

   You can check the command line to see if you are being launched normally (no /Embedding or /Automation parameters), and manually bump your internal COM reference/instance count once.  That will prevent unloading when a COM client connects (bumping the instance count) and disconnects (decrementing the instance count), because your instance count will still be above zero.  You can use the CCommandLineInfo object used in your app's initialization and checks its members.

   Be sure to also manually decrement the count when the user manually shuts your app down so that it unloads correctly, or your app will hide but keep running in the background.

   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!)

QuestionWhats the macro equivlent? Pin
Waldermort20-Dec-06 1:51
Waldermort20-Dec-06 1:51 
AnswerRe: Whats the macro equivlent? Pin
Naveen20-Dec-06 2:06
Naveen20-Dec-06 2:06 
AnswerRe: Whats the macro equivlent? [modified] Pin
Monty220-Dec-06 2:18
Monty220-Dec-06 2:18 
GeneralRe: Whats the macro equivlent? Pin
Waldermort20-Dec-06 2:40
Waldermort20-Dec-06 2:40 
Questionone class in tow namespace Pin
A_Fa20-Dec-06 1:06
A_Fa20-Dec-06 1:06 
AnswerRe: one class in tow namespace Pin
sunit520-Dec-06 1:15
sunit520-Dec-06 1:15 
GeneralRe: one class in tow namespace Pin
A_Fa20-Dec-06 1:29
A_Fa20-Dec-06 1:29 
AnswerRe: one class in tow namespace Pin
Cedric Moonen20-Dec-06 1:16
Cedric Moonen20-Dec-06 1:16 
GeneralRe: one class in tow namespace Pin
A_Fa20-Dec-06 1:35
A_Fa20-Dec-06 1:35 
AnswerRe: one class in tow namespace Pin
CPallini20-Dec-06 2:07
mveCPallini20-Dec-06 2:07 
AnswerRe: one class in tow namespace Pin
James R. Twine20-Dec-06 2:09
James R. Twine20-Dec-06 2:09 
AnswerRe: one class in tow namespace Pin
Maximilien20-Dec-06 3:09
Maximilien20-Dec-06 3:09 
GeneralRe: one class in tow namespace Pin
James R. Twine20-Dec-06 3:20
James R. Twine20-Dec-06 3:20 
GeneralRe: one class in tow namespace Pin
Maximilien20-Dec-06 4:23
Maximilien20-Dec-06 4:23 
GeneralRe: one class in tow namespace Pin
James R. Twine20-Dec-06 6:22
James R. Twine20-Dec-06 6:22 
AnswerRe: one class in tow namespace Pin
Michael Dunn20-Dec-06 7:06
sitebuilderMichael Dunn20-Dec-06 7:06 
GeneralRe: one class in tow namespace Pin
A_Fa20-Dec-06 19:12
A_Fa20-Dec-06 19:12 

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.