Click here to Skip to main content
15,922,533 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Subclassing Pin
Jörgen Sigvardsson30-Dec-03 6:54
Jörgen Sigvardsson30-Dec-03 6:54 
GeneralBitmap image in IE toolbar... :) Pin
Vermithrax19-Dec-03 14:36
Vermithrax19-Dec-03 14:36 
GeneralATL Server without the WEB. Pin
rkb19-Dec-03 7:58
rkb19-Dec-03 7:58 
GeneralDHTML IE toolband and ActiveX on it Pin
soniko19-Dec-03 4:32
soniko19-Dec-03 4:32 
GeneralThread termination in ATL COM Pin
Richard John17-Dec-03 6:12
Richard John17-Dec-03 6:12 
GeneralRe: Thread termination in ATL COM Pin
Tim Smith17-Dec-03 8:49
Tim Smith17-Dec-03 8:49 
GeneralRe: Thread termination in ATL COM Pin
Richard John17-Dec-03 10:40
Richard John17-Dec-03 10:40 
QuestionIs WTL UI updating broken on Pocket PC? Pin
Johann Gerell15-Dec-03 13:12
Johann Gerell15-Dec-03 13:12 
Hi!

I have a CFrameWindowImpl-based main frame on Pocket PC 2003 and the newly released WTL. I can not get menu state updating to work using the update ui feature of WTL. I believe the relevant parts of the class definition are these:
class CMainFrame :
  public CFrameWindowImpl<CMainFrame>,
  public CUpdateUI<CMainFrame>,
  public CIdleHandler,
  public CMessageFilter
{
public:
  DECLARE_FRAME_WND_CLASS(APP_MAINFRAME_CLASS, IDR_MAINFRAME);

  BEGIN_UPDATE_UI_MAP(CMainFrame)
    UPDATE_ELEMENT(IDM_HIDE_WEEKEND, UPDUI_MENUPOPUP)
  END_UPDATE_UI_MAP()

  BEGIN_MSG_MAP(CMainFrame)
    ...
    CHAIN_MSG_MAP(CUpdateUI<CMainFrame>)
    CHAIN_MSG_MAP(CFrameWindowImpl<CMainFrame>)
  END_MSG_MAP()
...
};

In CMainFrame::OnCreate() I then do
...
//
// Register object for message filtering and idle updates.
//
CMessageLoop* pLoop = _Module.GetMessageLoop();
ASSERT(pLoop);
pLoop->AddMessageFilter(this);
pLoop->AddIdleHandler(this);

UISetCheck(IDM_HIDE_WEEKEND, true, TRUE);
...

which, unfortunately, doesn't check the menu item.

Any ideas what might be goin on here? Did I miss something?

I can see with UIGetState() that UISetCheck() sort of works, since the state includes the checked bits, but the menu item is not updated! No check mark is drawn!

I can set check marks using raw API, but hey, WTL is supposed to do this for me! So, please...

Thanks for _any_ pointers!

/Johann Gerell


--
Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so. (Douglas Adams)

AnswerRe: Is WTL UI updating broken on Pocket PC? Pin
Jörgen Sigvardsson16-Dec-03 8:44
Jörgen Sigvardsson16-Dec-03 8:44 
AnswerRe: Is WTL UI updating broken on Pocket PC? Pin
Johann Gerell16-Dec-03 22:52
Johann Gerell16-Dec-03 22:52 
Generalstd::string question Pin
User 988515-Dec-03 5:32
User 988515-Dec-03 5:32 
GeneralRe: std::string question Pin
John M. Drescher15-Dec-03 5:51
John M. Drescher15-Dec-03 5:51 
GeneralRe: std::string question Pin
Igor Vigdorchik18-Dec-03 12:35
Igor Vigdorchik18-Dec-03 12:35 
GeneralRe: std::string question Pin
Kosenko Kolya19-Dec-03 0:49
Kosenko Kolya19-Dec-03 0:49 
GeneralThe button did not work.Please help me Pin
freehawk12-Dec-03 22:59
freehawk12-Dec-03 22:59 
GeneralRe: The button did not work.Please help me Pin
Igor Vigdorchik18-Dec-03 16:36
Igor Vigdorchik18-Dec-03 16:36 
GeneralRe: The button did not work.Please help me Pin
freehawk18-Dec-03 16:51
freehawk18-Dec-03 16:51 
QuestionHow to add a MFC dialog in a WTL project? Pin
freehawk12-Dec-03 21:25
freehawk12-Dec-03 21:25 
AnswerRe: How to add a MFC dialog in a WTL project? Pin
Igor Vigdorchik18-Dec-03 16:40
Igor Vigdorchik18-Dec-03 16:40 
GeneralRe: How to add a MFC dialog in a WTL project? Pin
freehawk18-Dec-03 16:53
freehawk18-Dec-03 16:53 
GeneralRe: How to add a MFC dialog in a WTL project? Pin
freehawk18-Jan-04 15:04
freehawk18-Jan-04 15:04 
GeneralRe: How to add a MFC dialog in a WTL project? Pin
Igor Vigdorchik18-Jan-04 16:13
Igor Vigdorchik18-Jan-04 16:13 
GeneralRe: How to add a MFC dialog in a WTL project? Pin
freehawk18-Jan-04 16:54
freehawk18-Jan-04 16:54 
GeneralRe: How to add a MFC dialog in a WTL project? Pin
Igor Vigdorchik18-Jan-04 18:09
Igor Vigdorchik18-Jan-04 18:09 
GeneralRe: How to add a MFC dialog in a WTL project? Pin
freehawk18-Jan-04 18:29
freehawk18-Jan-04 18:29 

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.