Hello all, I've been wondering, is there anything like MFC's AfxGetApp? Here's the thing. I have my CFrameWindowImpl derived class, which has many childs:...
GetTopLevelParent() should return the HWND of the highest window. Peter ... -- This message has been scanned for viruses and dangerous content by MailScanner,...
Normally when a user clicks on a context menu command, the menu loop is terminated and the relevant WM_COMMAND is dispatched. Also normally, if you left-click...
... Hi, It's not entirely clear why you need the button event for that sample but if you see WM_MENUSELECT, you will also see WM_INITMENUPOPUP and WM_INITMENU....
... Bjarke, it's not about populating the submenus, it's about "selecting" items that have submenus. To make it clearer: you have a menu which has an item...
... Hmm, almost. You want the actual menu-bar top-level items to act as buttons. Looking at the sample image, perhaps it is not a menubar at all, but a toolbar...
I could be way off here, but what I think what he wants is a notification when a submenu is about to be opened, so he can act as if it mimicked a click on a...
... you did, but it's not only the top level menus, it's any menu item with a popup, it should be "clickable" like a normal menu item and it should also work...
... Peter, that's correct but that message is _always_ sent, whether the user clicked on the item with the popup or not, so you can't tell when he's trying to...
I don't believe there is a message for that. You'll probably have to filter LBUTTONDOWN, or LBUTTONUP in pretranslatemessage compare to the menus hwnd and...
... TrackPopupMenuEx enters a private message loop while displaying the menu. If you look closely at the Spy++ output, you will see that WM_LBUTTONDOWN is...
... menu. If you look closely at the Spy++ output, you will see that WM_LBUTTONDOWN is actually posted, not sent. To intercept it, you would have to install a...
Hello, This email message is a notification to let you know that a file has been uploaded to the Files area of the wtl group. File : /WtlAero.h Uploaded...
wtl@yahoogroups.com
Jun 5, 2007 9:14 pm
14732
This is my code. *********************** Sub Frame .h ****************************** class CGroupFrame : public CFrameWindowImpl<CGroupFrame> { public: ...
I suppose this is not strictly WTL, but perhaps there is something related to using the framework that is causing this? I have a view in my WTL app that has a...
Hi all, Thanks in advanced for everyone helping me out. What I wanted to do is have a dialog with 2 buttons one for wizard mode and one for advanced mode as my...
... Hi, DoModal() will use the return-code given in the EndDialog() call. So try this... OnWizard(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) { ...
Windows Template Library 8.0 has been released! This is the best release of WTL yet (well, of course it is, why would we release it otherwise ;-) It brings...
I have no idea how that happened. Why didn't you report it in Beta2? Anyway, I updated the package now. Cheers, Nenad ________________________________ From:...
I read from the readme about its existence, but did not found it in the sample fold. I had thought you deliberately left it out for unsolved issues until I saw...
We use atldyndispatch (http://www.viksoe.dk/code/atldyndispatch.htm) in a product. with vs.net the code worked fine. After an upgrade to 2005, it stopped...
... The problem is with DISP_METHOD_ID and similar macros. Replacing all occurences of &func with &_atl_disp_classtype::func in atldispa.h should help. The...
Just to add one more bit of info...if we use DISP_METHOD0(&CWndConfigRoomBrowser::OnInitialize, VT_EMPTY) as stated below, the code never gets called, however...
... The reason it never gets called is because GetIdsOfNames fails to recognize it. The first parameter is used in two ways: to form a pointer to the method,...
Does this mean that there will be a re-release of WTL 8? eg WTL 8.01 (build 7162)? Mike ... From: <wtl@yahoogroups.com> To: <wtl@yahoogroups.com> Sent:...