Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtPopupMenuWnd bug? Collapse All
Subject Author Date
Ladislav Prosek Feb 22, 2004 - 11:28 AM

Hi,


consider the following code:


  CExtPopupMenuWnd *pPopupWnd = new CExtPopupMenuWnd();
  pPopupWnd->CreatePopupMenu(GetSafeHwnd());


  pPopupWnd->ItemInsertCommand(ID_MYCOMMAND1, -1, "Command 1");
  pPopupWnd->ItemInsertCommand(CExtPopupMenuWnd::TYPE_SEPARATOR, -1);
  pPopupWnd->ItemInsertCommand(ID_MYCOMMAND2, -1, "Command 2");


  pPopupWnd->TrackPopupMenu(0, 10, 10);


The resulting popup menu does not contain the separator! If I replace ItemInsertCommand with ItemInsert, it works - the separator appears. Why? What am I doing wrong?


Thanx
LP

Sergiy Lavrynenko Feb 28, 2004 - 1:15 PM

Hi,

Thank you for the bug report. The bug free version will be released within two days.