Click here to Skip to main content
15,921,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMFC dll creation Pin
gopalraja6-May-09 0:14
gopalraja6-May-09 0:14 
AnswerRe: MFC dll creation Pin
Rajesh R Subramanian6-May-09 0:16
professionalRajesh R Subramanian6-May-09 0:16 
GeneralRe: MFC dll creation Pin
Ahmed Charfeddine6-May-09 4:10
Ahmed Charfeddine6-May-09 4:10 
GeneralRe: MFC dll creation Pin
Rajesh R Subramanian6-May-09 4:23
professionalRajesh R Subramanian6-May-09 4:23 
AnswerRe: MFC dll creation Pin
CPallini6-May-09 0:34
mveCPallini6-May-09 0:34 
QuestionHow to show the form created in Windows Form Library from an MFC application Pin
SivaGK5-May-09 23:59
SivaGK5-May-09 23:59 
AnswerRe: How to show the form created in Windows Form Library from an MFC application Pin
Stuart Dootson6-May-09 1:36
professionalStuart Dootson6-May-09 1:36 
QuestionHelp about Message loop please Pin
reply2am5-May-09 23:53
reply2am5-May-09 23:53 
AnswerRe: Help about Message loop please Pin
Stuart Dootson6-May-09 1:40
professionalStuart Dootson6-May-09 1:40 
AnswerRe: Help about Message loop please Pin
serzh836-May-09 1:54
serzh836-May-09 1:54 
GeneralRe: Help about Message loop please Pin
reply2am6-May-09 4:32
reply2am6-May-09 4:32 
GeneralRe: Help about Message loop please Pin
reply2am6-May-09 4:34
reply2am6-May-09 4:34 
GeneralRe: Help about Message loop please Pin
serzh836-May-09 5:33
serzh836-May-09 5:33 
QuestionRe: Help about Message loop please Pin
reply2am8-May-09 0:49
reply2am8-May-09 0:49 
AnswerRe: Help about Message loop please Pin
KarstenK8-May-09 1:10
mveKarstenK8-May-09 1:10 
Questiongetting complete file path Pin
MahaKh5-May-09 23:50
MahaKh5-May-09 23:50 
AnswerRe: getting complete file path Pin
Rajesh R Subramanian5-May-09 23:52
professionalRajesh R Subramanian5-May-09 23:52 
GeneralRe: getting complete file path Pin
MahaKh5-May-09 23:58
MahaKh5-May-09 23:58 
AnswerRe: getting complete file path Pin
«_Superman_»5-May-09 23:56
professional«_Superman_»5-May-09 23:56 
GeneralRe: getting complete file path Pin
MahaKh6-May-09 0:02
MahaKh6-May-09 0:02 
GeneralRe: getting complete file path Pin
Divyang Mithaiwala6-May-09 1:55
Divyang Mithaiwala6-May-09 1:55 
QuestionInconstitent CTreeCtrl due to Modal Dialog [modified] Pin
__GJ__5-May-09 23:46
__GJ__5-May-09 23:46 
Hi,

I have a program that uses a tree for navigation and if you select a node it starts computing. In order to be able to abort the computation, I wanted to show an abort dialog. However if I continue clicking on the tree, while waiting for the dialog, it is possible to get the tree into a state, that it will always jump back a node (last clicked before the dialog popped up).
It doesn't happen with every popup, it has to do with the timing of the click and the dialog.
If the tree is in that state, you can select another node, it will show it as selected as long as the mouse button is pressed, if you release it it will jump back and show the other node as selected. The focus rectangle remain on the "correct" node, also the computation starts for the correct node.

I generated a small program, with Visual Studio 2008, a single dialog with visual studio layout. And the only code I added was a timer to popup the about dialog every 2 seconds (if it is not already shown).
Even in this program I am able to reproduce it. I tried varies things, such as giving the focus back to the dockable pane with the tree in it, moving the timer handler to the treectrl, tried to peekmessage and such, but nothing works and I'm running out of ideas.

Hopefully someone here can help me. Smile | :)

I uploaded the code to: file factory (sorry but I don't have another option atm Smile | :) )

modified on Wednesday, May 6, 2009 6:06 AM

AnswerRe: Inconstitent CTreeCtrl due to Modal Dialog Pin
Stuart Dootson6-May-09 2:30
professionalStuart Dootson6-May-09 2:30 
GeneralRe: Inconstitent CTreeCtrl due to Modal Dialog Pin
__GJ__6-May-09 4:56
__GJ__6-May-09 4:56 
GeneralRe: Inconstitent CTreeCtrl due to Modal Dialog Pin
Stuart Dootson6-May-09 6:44
professionalStuart Dootson6-May-09 6:44 

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.