![]() |
Menu Tracking - Windows 95/98/ME |
Post Reply ![]() |
Author | |
Kenneth ![]() Senior Member ![]() ![]() Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
![]() ![]() ![]() ![]() ![]() Posted: 27 October 2004 at 2:22pm |
When you compile an app using Unicows, the ability to properly close the menu is lost on Windows 95/98 and ME. The only way to close an expanded menu is to left mouse click on the title bar. I added the following code to the application, which resolves the problem. However, adding the OnWndMsg override prevents any ON_XTP_EXECUTE to work. Is there a solution to this? Added code: BOOL CMainFrame::OnWndMsg(UINT message,WPARAM wParam,LPARAM lParam,LRESULT* pResult) |
|
![]() |
|
Kenneth ![]() Senior Member ![]() ![]() Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
![]() ![]() ![]() ![]() ![]() |
I found a better and more reliable method to take care of this problem. Boy, Unicows/Unicode and this Tookkit Pro sure does clash a lot! Never had these problems with Xtreme toolkit.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
copy code from XTPFrameWnd.h. What is base class for CMainFrame? Why you call CWnd::OnWndMsg(message,wParam,lParam,pResult); instead of CFrameWnd I think it is cause of your problem. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Kenneth ![]() Senior Member ![]() ![]() Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
![]() ![]() ![]() ![]() ![]() |
Oleg I had CFrameWnd before, and changed to CWnd just to see if it made any difference. But I had the same problem. The logic works as far as resolving the Windows 95/98/Me menu problem, but prevents ON_XTP_EXECUTE from working on all systems, including XP. However keep in mind that I believe this only affects programs compiled with Unicode with Unicows support. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
call CXTPFrameWnd::OnWndMsg instead of CWnd::OnWndMsg. I think it must solve your problem. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Kenneth ![]() Senior Member ![]() ![]() Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
![]() ![]() ![]() ![]() ![]() |
Oleg Yes, that does work.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |