Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Combobox problem with WinExplorer sample
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Combobox problem with WinExplorer sample

 Post Reply Post Reply
Author
Message
rconn View Drop Down
Groupie
Groupie


Joined: 16 May 2007
Location: United States
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote rconn Quote  Post ReplyReply Direct Link To This Post Topic: Combobox problem with WinExplorer sample
    Posted: 19 May 2007 at 4:21pm

I just got the ToolkitPro and have been experimenting with the WinExplorer sample.  The address combo box is updated whenever I select something in the tree control, but entering something directly into the edit control of the combo box seems to be ignored.  (The OnAddressBarEnter() and OnSelEndOkAddressBar() functions are never  called.)

Where are the combo box notifications going?
 
- Rex
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 21 May 2007 at 1:07am
Hello,
 
OnSelEndOkAddressBar called when user show list of combobox and choose some item. OnAddressBarEnter indeed never called - was just copied from Samples\UserInterface\GUI_Explorer :(
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rconn View Drop Down
Groupie
Groupie


Joined: 16 May 2007
Location: United States
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote rconn Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2007 at 8:59am

Hi Oleg:

OnSelEndOkAddressBar is called if I select one of the entries from the drop-down list.  But if I type a new entry in the edit control and hit return, it is not called -- is there any notification sent for the edit control in the combo box?
 
    - Rex
 
Back to Top
rconn View Drop Down
Groupie
Groupie


Joined: 16 May 2007
Location: United States
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote rconn Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2007 at 9:51am
Hi Oleg:
 
I discovered that adding a PreTranslateMessage() to my mainfrm window with a:
 
    if ( IsDialogMessage( pMsg ))
        return TRUE;
 
will call OnAddressBarEnter after entering something in the combobox edit control, so that's a workable solution.
 
    - Rex
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.