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 :...
15662
smartmobili
Nov 2, 2008 1:10 pm
... Oups I wanted to say in large Icon mode, I havent't tested what happens in report mode....
15663
Alain Rist
arnavpoch
Nov 2, 2008 4:53 pm
Hi, ... Use CListViewCtrl::GetSelectedIndex() or CListViewCtrl::GetSelectedItem(). ... Use ::ImageList_SetBkColor() with CLR_NONE. ... Use...
15664
succeeded918
Nov 5, 2008 8:42 am
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...
15665
succeeded918
Nov 5, 2008 8:44 am
now i want to implement the hotkey customization feature just like in Photoshop. could anyone give me some advice?...
15666
rongearley
Nov 5, 2008 9:35 pm
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)....
15667
Nikos Bozinis
umeca74
Nov 6, 2008 7:14 am
... does this help? http://www.codeproject.com/KB/system/keyAssignDlg.aspx...
15668
smartmobili
Nov 10, 2008 4:32 pm
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...
15669
smartmobili
Nov 10, 2008 4:41 pm
... Hum actually it's because I was using custom draw and a listctrl in icon mode... It seems it only works with report mode....
15671
Ricardo
kypdurron01
Nov 11, 2008 8:38 am
smartmobili wrote: Perhaps you should use LVS_ALIGNTOP style....
15672
Michael Stephenson
domehead100
Nov 11, 2008 4:41 pm
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...
15673
rongearley
Nov 11, 2008 5:15 pm
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...
15674
Michael Stephenson
domehead100
Nov 12, 2008 1:15 pm
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...
15675
rongearley
Nov 12, 2008 3:57 pm
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...
15676
Michael Stephenson
domehead100
Nov 12, 2008 5:27 pm
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 ...
15677
rongearley
Nov 12, 2008 5:43 pm
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...
15678
Michael Stephenson
domehead100
Nov 12, 2008 6:29 pm
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...
15679
rongearley
Nov 12, 2008 6:39 pm
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...
15680
Michael Stephenson
domehead100
Nov 13, 2008 2:25 am
Hi Ron, Sure, UnsubclassWindow compares the address of the thunk WndProc function and the current WndProc address from the window class (via GetWindowLong). If...
15681
Michael Stephenson
domehead100
Nov 13, 2008 3:34 am
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...
15682
carr 帅
shuaixh
Nov 17, 2008 1:13 am
Hello , every genius:         I love C++ programming, yet i find it hard to program UI elements, time consuming, boring, complex.  ...
15683
sanju_poudel2007
sanju_poudel...
Nov 17, 2008 5:25 am
Please help me. i am new to windows programming....
15684
Stanislav Kolar
skolar@...
Nov 17, 2008 8:12 am
www.trolltech.com Stanislav Kolar Research & Development ................................................................. Kerio Technologies Anglicke nabrezi...
15685
Yarp
yarp2002
Nov 19, 2008 9:26 pm
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. ...
15686
Michael Stephenson
domehead100
Nov 20, 2008 4:14 am
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 ...
15687
Yarp
yarp2002
Nov 20, 2008 5:56 am
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...
15688
Anna-Jayne Metcalfe
jalapenokitten
Nov 20, 2008 8:57 am
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...
15689
Alain Rist
arnavpoch
Nov 20, 2008 9:11 am
Hi Yarp, You may handle your design problem through a parent template param in your control class: template <class T, class TParent, class TBase =...
15690
Alain Rist
arnavpoch
Nov 20, 2008 1:08 pm
Edit in my previous post: template <class T, class TParent, class TBase = ATL::CWindow, class TWinTraits = ATL::CControlWinTraits> class CMyCtrlImpl { public: ...
15691
Yarp
yarp2002
Nov 20, 2008 1:11 pm
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...