Hello, I am trying to load a bmp in my app which uses WM_PAINT -and it failes. Since i am a newbee to graphics maybe i am missing something in the app. How do...
"yakirtus" <yakirtus@...> wrote in message news:c75tjr+m02p@eGroups.com ... You don't - Windows does when it detects your window is in need of repainting...
What about BmpView in WTL sample folder? Cheers, Pascal ... From: "yakirtus" <yakirtus@...> To: <wtl@yahoogroups.com> Sent: Monday, May 03, 2004 6:56 PM ...
Hi all, I guess I'm a bit of a WTL newbie but I'm taking to it. Codeproject has lots of useful examples :-) However, I'm having problems with a CPropertySheet...
SetWizardMode will add PSH_WIZARD to the property sheet flags, but you want PSH_WIZARD97 if you're going to be doing a header bitmap. SetHeader will unset...
In the constructor to my Wizard I set the header with a SetHeader call, this sets the PSH_WIZARD97 style. There is no need to call SetWizardMode since this...
Daniel, Excellent post - thanks! I went through each of your suggestions one at a time. It only started to work when I also switched the watermark on with...
After a lot of head-scratching (and swearing all morning :) I have discovered there's a bug in the tooltip control. I was trying to add tools for a dialog...
What you can do is to redefine TOOLINFO and LPTOOLINFO after commctrl.h has been included and before atlctrls.h. ... #include <atlapp.h> typedef struct...
... it does, but the tooltip itself is broken if WTL doesn't cover that and forces me to do "workarounds" then i consider it a (small) bug! basically there's a...
Hi, Our graphics application is leaking memory constantly. I checked DC/bitmap creation/deletion pair and found no reason. Any suggestion as to how to debug...
I have a small graphics application that is using WTL and has over 200k downloads over the last year and I am not seeing any problems. Can you be abit more...
I don't consider changing the WTL header files a simpler solution. If you redefine TOOLINFO and LPTOOLINFO you don't need to do any changes to the WTL header...
... i never recommended anything of the sort modifying headers is for Nenad's todo list! ... and this is relevant to the subject because... (?) let's give it a...
What I mean is that if you redefine TOOLINFO and LPTOOLINFO you won't have any problems anywhere where sizeof(TOOLINFO) is called, in your code or code written...
... Your explanation means nothing. There may be many places in your application where leaks occurr. Please, be more precise or give some piece of code. -...
Hello all, I'm writing a WTL control and I have to make some decisions on a design issue. I was hoping I could get some feedback on the possibilities. I want...
... design ... be able ... using ... based or ... is ... something> } ... something> } ... changed at ... changed at ... compacter ... Are ... customization? ...
Hi Roel, your post poses an interesting quesiton. All of the approaches you suggest have their merits and drawbacks. At the risk of further complicating the...
... Ai ai that's what I get when just typing code that hasn't actually been used ;) DrawerBase should of course have been virtual like this: class DrawerBase {...
... Well I have this problem regularly, but for the sake of the argument, let's consider a control that looks like the icon list in outlook (where you can...
... Yes ... try to isolate the code where the leak(s) occur. Turn off different sections of code (like the WM_PAINT message handler) by commenting them out:...
Hi, I suggest to patch the atlgdi.h litle bit. Change the function for the class CBitmapT from: BOOL DeleteObject() { ATLASSERT(m_hBitmap != NULL); BOOL bRet =...
Serhiy Serbin
srs@...
May 7, 2004 2:59 pm
8614
... been ... DefaultDrawer ... in ... things ... Hi Roel, Since OnPaint is calling a DrawerBase pointer (ie its not being cast to some derived class), I dont...
Roger, I think you learned something today: class A { public: virtual void Method() { ATLTRACE("A");} }; class B: public A { public: virtual void Method() {...
Hi, Thanks for so much help. I checked my code. One strange thing is that the number displayed under Mem Usage from Task Manager increases steadily. On one...
Ted, I had a similar problem last year, and also saw the steadily increasing memory usage numbers (as I continually refreshed the display). The error was in...
"Roger Headrick" <lilsroro@...> wrote in message news:c7gc43+qa3s@eGroups.com ... It does. That's what "virtual" and polymorphism is all about. ... class...