Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Toobar Focus Issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toobar Focus Issue

 Post Reply Post Reply
Author
Message
Makarand View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 February 2007
Location: India
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote Makarand Quote  Post ReplyReply Direct Link To This Post Topic: Toobar Focus Issue
    Posted: 17 December 2007 at 4:22am
Hi Oleg,

I have created toolbar on a dialog. On Dialog I have grid view.
 
VERIFY(m_ToolBar.CreateToolBar(WS_CHILD | WS_VISIBLE | CBRS_TOP, this));
VERIFY(m_ToolBar.LoadToolBar(IDR_LINKTOOLBAR));

I set the grid view property SetFocus() in OnTimer(..) Function, but focus still on toolbar. when I press the "esc" kay or click on grid view then only toolbar lost the focus.

Logically when I call the grid.SetFocus() toolbar should lost the focus.
I want to set the focus on grid view not on toolbar when dialog is open.

(I am not using CommandBar to create the toolbar)

Waiting for reply.
Thanks.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2007 at 1:23pm
Hi,
 
add
 
XTPMouseManage()->SendTrackLost(); after SetFocus.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.063 seconds.