Click here to Skip to main content
15,917,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: message BN_CLICKED for button in flexgrid Pin
Cedric Moonen11-May-06 0:00
Cedric Moonen11-May-06 0:00 
GeneralRe: message BN_CLICKED for button in flexgrid Pin
zeus_master11-May-06 0:07
zeus_master11-May-06 0:07 
GeneralRe: message BN_CLICKED for button in flexgrid Pin
Cedric Moonen11-May-06 0:09
Cedric Moonen11-May-06 0:09 
GeneralRe: message BN_CLICKED for button in flexgrid Pin
zeus_master11-May-06 0:13
zeus_master11-May-06 0:13 
GeneralRe: message BN_CLICKED for button in flexgrid Pin
zeus_master11-May-06 18:39
zeus_master11-May-06 18:39 
GeneralRe: message BN_CLICKED for button in flexgrid Pin
Cedric Moonen11-May-06 20:59
Cedric Moonen11-May-06 20:59 
GeneralRe: message BN_CLICKED for button in flexgrid Pin
zeus_master11-May-06 21:29
zeus_master11-May-06 21:29 
GeneralRe: message BN_CLICKED for button in flexgrid Pin
zeus_master11-May-06 22:14
zeus_master11-May-06 22:14 
yes,you are right, the first click miss is due to set the focus of flexgrid.

the first mouse click in the flexgrid area,no matter which sub control is clicked, the focus is set to the sub control or flexgrid.
so,I want to add the set focus code in CBTGrid class function flexgrid OnMouseMove, while mouse move over flexgrid,set the focus right away;

void CBTGrid::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CMSFlexGrid::OnMouseMove(nFlags, point);

CBTGrid::OnSetFocus(CWnd* pOldWnd);
}

now,the problem is how can I get the CWnd* pOldWnd? D'Oh! | :doh:


or there is another good idea?


I'm appreciated your suggestion
GeneralRe: message BN_CLICKED for button in flexgrid Pin
Cedric Moonen11-May-06 22:19
Cedric Moonen11-May-06 22:19 
GeneralRe: message BN_CLICKED for button in flexgrid Pin
zeus_master11-May-06 22:51
zeus_master11-May-06 22:51 
GeneralRe: message BN_CLICKED for button in flexgrid Pin
Cedric Moonen11-May-06 22:58
Cedric Moonen11-May-06 22:58 
GeneralRe: message BN_CLICKED for button in flexgrid Pin
zeus_master11-May-06 23:13
zeus_master11-May-06 23:13 
GeneralRe: message BN_CLICKED for button in flexgrid Pin
zeus_master11-May-06 23:43
zeus_master11-May-06 23:43 
QuestionCreate a child window Pin
v3r50r10-May-06 23:34
v3r50r10-May-06 23:34 
AnswerRe: Create a child window Pin
Russell'10-May-06 23:57
Russell'10-May-06 23:57 
GeneralRe: Create a child window Pin
v3r50r11-May-06 0:01
v3r50r11-May-06 0:01 
GeneralRe: Create a child window Pin
Cedric Moonen11-May-06 0:05
Cedric Moonen11-May-06 0:05 
GeneralRe: Create a child window Pin
v3r50r11-May-06 0:13
v3r50r11-May-06 0:13 
GeneralRe: Create a child window Pin
Cedric Moonen11-May-06 0:56
Cedric Moonen11-May-06 0:56 
GeneralRe: Create a child window Pin
Russell'11-May-06 0:05
Russell'11-May-06 0:05 
GeneralRe: Create a child window Pin
v3r50r11-May-06 0:07
v3r50r11-May-06 0:07 
GeneralRe: Create a child window Pin
Russell'11-May-06 0:17
Russell'11-May-06 0:17 
Questioncharset for the current language OS. Pin
Sandeep. Vaidya10-May-06 23:33
Sandeep. Vaidya10-May-06 23:33 
QuestionSerial Port interrupt Pin
aasstt10-May-06 22:55
aasstt10-May-06 22:55 
AnswerRe: Serial Port interrupt Pin
Cedric Moonen10-May-06 23:02
Cedric Moonen10-May-06 23:02 

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.