Print Page | Close Window

How to know the focus of toolbar?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3675
Printed Date: 10 November 2025 at 1:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to know the focus of toolbar?
Posted By: freehawk
Subject: How to know the focus of toolbar?
Date Posted: 20 February 2006 at 3:00am

Hello

There is a CXTPControlComboBox in A toolbar. In CMainFrame.cpp when the mouse is clicked if the focus is in the CXTPControlComboBox as the following source code:

CMainFrame::IsInToolbar()

{...

if(m_ToolbarComBoBox->GetEditCtrl() == GetFocus())

{// do something

}

 

but it could not work , Please help me why?

-Freehawk 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net