Hi guys, What's your recommended method/tool to detect memory/resource leaks in our WTL program? In the past, we have used BoundChecker (for Visual Studio 6),...
Even a simple MessageBox() function in a WTL dll that shows a dialog doesn't seem to work. The messagebox shows up, but no buttons can be pressed. Why is...
I've used various products like bounds checker and purify in the past, and have found that for me the easiest thing to do is check for memory leaks using the...
I place ATLTRACE2(atlTraceRefcount,1,_T("XXX object created (%p)\n"), this); in each FinalConstruct() and ATLTRACE2(atlTraceRefcount,1,_T("XXXXX object...
Hi Luc, ... It sounds like you may have a message loop problem. Are you by any chance running it from within a worker thread? Another thing to check is that...
What is shown on your posted code sample should work. I will note that your tab class in the sample is MyTab, but your BEGIN_MSG_MAP_EX() has the class as...
... that your ... the class ... correct ... Indeed, the initial pasted version had a wrong message map -- just a copy/paste problem. Nevertheless, the current...
1.. In Dialog.rc suppress the WS_DISABLED style on your IDD_TAB1 and IDD_TAB2 : STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD /*| WS_DISABLED*/ 2.. In Tab1.h set...
... Thanks a ton! Such a simple problem -- usually these are the hardest to find :) Didn't notice that the dialog is disabled in resources and would have never...
... It doesn't actually make any difference what you put for the parameter to BEGIN_MSG_MAP or BEGIN_MSG_MAP_EX, because the parameter is never used! -- Jim...
I've finally found the problem. My calling application had an WM_ACTIVATE handler which seemed to cause the problem. ... dialog ... be ... chance ... that the ...
Hi, It seems that the COMMAND_ID_HANDLER(IDC_BUTTON,OnButton) calls the OnButton function when the left mouse button is released. For my application, a camera...
All, I'm having some trouble with an owner drawn static control. Basically the performance is awful when I owner draw (Windows Mobile targeted app but the...
There is an easy solution: create your own custom messages, one for the button down and one for the button up, and have the button send those messages to the...
I'm not sure if it works, anyway try to return 0 instead of TRUE from OnPaint, as stated in Platform SDK for WM_PAINT message. Bye, Nick ... Mobile ... do ... ...
If only my friend...Not sure what exactly the SDK is intending here. Returning TRUE should indicate we took care of drawing and don't require default PAINT....
To handle a right-click by adding a handler for the WM_CONTEXTMENU notification and processing it. Check out WM_CONTEXTMENU in the documentation. For...
Figured it out....The problem wasn't in the paint code at all but rather was the ATLTRACE message. Turns out that ATLTRACE is a pretty expensive operation....
Borland C++ Builder _____ From: wtl@yahoogroups.com [mailto:wtl@yahoogroups.com] On Behalf Of Andrea De Nardis Sent: Monday, October 08, 2007 3:12 AM To:...
Hi Folks, I'm working on a custom combobox that will be used for selecting files/folders in a property list. When the combo has the DROPDOWNLIST style such...
... Pretty stupid, isn't it? The problem is that after the tooltip has "popped", it doesn't detect the mouse leaving the control. You can work around it by...
... Thanks much for the info; makes sense. Yeah, it's pretty silly. What I did since Monday was to convert the tooltip to a tracking tooltip, which gives me...
i have been programming WTL apps for quite a long time, these days ,i find it boring to deal with GUI elements in C++. beautiful GUI is hard to make with raw...
... There is a lot out there on using an HTML rendering engine for the UI in compiled apps. You might Google: wtl html rendering Some interesting hits...