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

C / C++ / MFC

 
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 
GeneralRe: Inconstitent CTreeCtrl due to Modal Dialog Pin
__GJ__6-May-09 20:44
__GJ__6-May-09 20:44 
GeneralRe: Inconstitent CTreeCtrl due to Modal Dialog Pin
__GJ__8-May-09 3:56
__GJ__8-May-09 3:56 
QuestionStatic variable in header file Pin
neupane.keshab5-May-09 23:17
neupane.keshab5-May-09 23:17 
AnswerRe: Static variable in header file Pin
«_Superman_»5-May-09 23:42
professional«_Superman_»5-May-09 23:42 
AnswerRe: Static variable in header file Pin
CPallini5-May-09 23:48
mveCPallini5-May-09 23:48 
GeneralRe: Static variable in header file Pin
neupane.keshab6-May-09 1:34
neupane.keshab6-May-09 1:34 
GeneralRe: Static variable in header file Pin
CPallini6-May-09 1:44
mveCPallini6-May-09 1:44 
AnswerRe: Static variable in header file Pin
Stuart Dootson6-May-09 1:47
professionalStuart Dootson6-May-09 1:47 
AnswerRe: Static variable in header file Pin
neupane.keshab6-May-09 1:59
neupane.keshab6-May-09 1:59 
Questionhow to remote access to ad Pin
ljz8886665555-May-09 23:07
ljz8886665555-May-09 23:07 
AnswerRe: how to remote access to ad Pin
ljz8886665555-May-09 23:10
ljz8886665555-May-09 23:10 
GeneralRe: how to remote access to ad Pin
Hamid_RT5-May-09 23:17
Hamid_RT5-May-09 23:17 
GeneralRe: how to remote access to ad Pin
ThatsAlok5-May-09 23:30
ThatsAlok5-May-09 23:30 
GeneralRe: how to remote access to ad Pin
Cedric Moonen5-May-09 23:55
Cedric Moonen5-May-09 23:55 

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.