Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - try the SHAutocomplete in xtpcombox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

try the SHAutocomplete in xtpcombox

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


Joined: 14 June 2004
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote blueseaing Quote  Post ReplyReply Direct Link To This Post Topic: try the SHAutocomplete in xtpcombox
    Posted: 14 November 2004 at 10:19pm

with the help of oleg, I make  SHAutoCompletel work in xtpcombox  but I find two problems again , that's 

      1  when I try to drag the autocomplete hook window and the hook window will disappear and only remain the white rectangle ,  the rectanage can zoom ,  after release the mouse ,all disappear.

     2 when the autocomplete list appear the mouse wheel can't use but the common windows

      the example of the problem is:
https://forum.codejock.com/uploads/blueseaing/2004-11-04 _030207_CustomThemes.rar

     I use the spy, and find when OnNCLbutton in the auto suggestion window , the edit control will get the onkillfocus message, and then the auto suggestion window showwindow(false), and i think the problem may be bring from the mousetrack of xtpcommadbar, but in detail , i can't know more.

Back to Top
blueseaing View Drop Down
Groupie
Groupie


Joined: 14 June 2004
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote blueseaing Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2004 at 2:42am

I have solve the problem to some extent, my wai list below, but not perfect.


  pSearchBar = (CXTPToolBar*)pCommandBars->Add(_T("Search bar"), xtpBarTop);
 if (!pSearchBar ||
  !pSearchBar->LoadToolBar(IDR_TOOLBAR_SEARCH))
 {
  TRACE0("Failed to create SearchBar\n");
  return FALSE;
 }

 //set the  TrackingMode False to make sure the combox in the searchbar enable the IE autocompleter function.
 
 pSearchBar->SetTrackingMode(FALSE);


but unfortunately, the solve isn't perfect to some extent, when user pop the downdrop list of the combox, sometimes the mousewheel may not function, and the main menu item will lost focus at all.



Edited by blueseaing
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.062 seconds.