Hi, I have uplodaded (customdrawlit_ce.zip) a sample project with a custom draw list ctrl that I am trying to developp. I have some issues with customdrawing :...
when we develop an application that's not so small, it might be consisted of serverl projects (serveral activex controls) and that IDE is a framework to...
I'm using a Windows Mobile device, IS is version 6.1. I'm Using WTL and I have a DLL that loads itself into the tmail.exe process (the inbox application)....
Hi, I am developping on windows mobile a custom draw ClistCtrl and it seems that when I try to get drawing area for icon I only get size and not position. for...
Did you get this resolved? I don't do mobile development, so maybe none of this applies, but just throwing out some thoughts: 1) Not sure if you can do...
Hi, Thanks for the thoughts... I've commented below: 1. I haven't looked at PreTranslateMessage(), but I'm not sure how I'd get hooked into it unless I...
Just a little confused :o). You said that you are subclassing a window, and that you are then unsubclassing it in your WM_NCDESTROY handler, but then you said...
I looked at the WndProc code and it does indeed unsubclass the window if I don't do it in WM_NCDESTROY. I just did it on my own to better control when it is...
Hi Ron, Still a bit confused, since the WM_NCDESTROY is sent to the window which is being destroyed, which you have subclassed, if you are receiving that ...
Hi Michael, There are two scenarios: 1. I'm loaded within the inbox and I close the process via task manager. That works well and I see WM_NCDESTORY. This...
Hi Ron, Starting to make sense. Sounds like you need to unsubclass the window independenly if the DLL is unloaded but you haven't already done so via...
Hi Mike, This bit of logic works well for me already. I know I'm being unloaded and if my IsWindow() function returns true, I know I've subclassed a window...
Hi Ron, Sure, UnsubclassWindow compares the address of the thunk WndProc function and the current WndProc address from the window class (via GetWindowLong). If...
Also, if AtlIsValidAddress() is implemented on mobile, that might help give you some insight into whether the thunk or WndProc pointer in the window class is...
www.trolltech.com Stanislav Kolar Research & Development ................................................................. Kerio Technologies Anglicke nabrezi...
Stanislav Kolar
skolar@...
Nov 17, 2008 8:12 am
15685
Hi, I'm currently, writting a Grid class based on CListViewCtrl. My problem is that I would need to invoke methods from that grid (handlers) in Parent class. ...
My advice: use messages! The WTL programmer is familiar with message maps. Messages are about as generic as it gets (even the message handler function ...
Hi Michael, Thanks for your answer. Messages are just what I want to avoid. I know this is common practise in WTL, but I'm reluctant sending messages for each...
Hi Yarp, ... Why don't you derive an abstract (templated if necessary) interface and derive the parent from it? That way, the child isn't exposed to the detail...
Edit in my previous post: template <class T, class TParent, class TBase = ATL::CWindow, class TWinTraits = ATL::CControlWinTraits> class CMyCtrlImpl { public: ...
Hi Anna, I ignored this was called an interface thanks. I've spent last hour reading about C++ interfaces. Anyway, this seem pretty close to my case #1, except...