July 22nd, 2009, 06:44 PM
I tried it and you're right. That explains a lot :-S Thank you. I would've wasted a couple more hours on this...
This way though the selection doesn't "jump" to the first item when pressing the down...
July 22nd, 2009, 06:17 PM
I have a CListCtrl in a modal Dialog. The control has the following styles:
- Single Selection
- No Scroll
- No Sort Header
- Always Show Selection
- Grid Lines
June 30th, 2009, 03:33 PM
You already include Avatar.h in Environment.h. That double inclusion could cause some of the errors.
June 24th, 2009, 07:32 AM
Could you be a bit more specific? What do you mean with communication?
If you have two classes A and B you can call a method of A from a method of B if either an Object of class A is a member of...
June 24th, 2009, 07:11 AM
What if you just add a handler for the WM_DROPFILES message to your view class? It is possible to get the filename via DragQueryFile in there.
Have a look at this:...
June 22nd, 2009, 05:58 AM
Microsoft says that you have to send the EM_SETEVENTMASK message to the CONTOL not to the View itself. Try something like this in your OnInitialUpdate handler:
June 17th, 2009, 05:38 AM
I just stumbled over the same issue. Has someone finally found a way to use word automation with VC 8 and Word 2003 without using VC 7 first??
June 15th, 2009, 06:45 AM
Alright. Thank you for now. I'm going to derive my own list control and let you know if it worked.
June 15th, 2009, 06:20 AM
I meant the trouble that results in NOT deriving my own class but doing it the way I did. ;)
Using CDocument::UpdateAllViews is what I meant by communication. I should have been more exact.
June 15th, 2009, 05:48 AM
Well, I thought it would save me some work - obviously without thinking about the trouble it could get me in.
But that's not the whole reason. I have a doc-view application with multiple views...
June 15th, 2009, 05:36 AM
I avoided deriving my own list control. The combo box is also a member of the CFormView derived class but created as the list control's child.
June 15th, 2009, 05:20 AM
In an application I have a Form View with a list control (m_ctrlList) in it, among others. The list control is set to report style. There is also a combo box that is supposed to show up,...