Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMultiple monitor support for MFC application Pin
Ashish Ranjan Mishra6-Feb-12 14:19
Ashish Ranjan Mishra6-Feb-12 14:19 
AnswerRe: Multiple monitor support for MFC application Pin
Albert Holguin6-Feb-12 16:43
professionalAlbert Holguin6-Feb-12 16:43 
GeneralRe: Multiple monitor support for MFC application Pin
Ashish Ranjan Mishra7-Feb-12 16:03
Ashish Ranjan Mishra7-Feb-12 16:03 
AnswerRe: Multiple monitor support for MFC application Pin
JackDingler7-Feb-12 8:51
JackDingler7-Feb-12 8:51 
GeneralRe: Multiple monitor support for MFC application Pin
Ashish Ranjan Mishra7-Feb-12 16:01
Ashish Ranjan Mishra7-Feb-12 16:01 
GeneralRe: Multiple monitor support for MFC application Pin
JackDingler7-Feb-12 16:45
JackDingler7-Feb-12 16:45 
AnswerRe: Multiple monitor support for MFC application Pin
Anu_Bala7-Feb-12 23:23
Anu_Bala7-Feb-12 23:23 
QuestionVS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1235-Feb-12 10:05
Fallen1235-Feb-12 10:05 
I Have a derived class Ownerdraw CListboxAdv derived from Clistbox On a CDialog
It handles records with multiple fields
View field by 'formatted" string
Reads/Writes to file
reads/writes to clip
in place edit of fields or record
Sorts records by any field/combination of fields
Can View any Field (Listbox columnar) or switch
to std View with fields in neat columnar format
Can search for records by any field or
combination of fields
Etc
Bascally it can eat any file with fields in each
record seperated by "Delimiter" char



Simply I'm trying to add a toolbar to the blasted thing

Tried adding toolbar directly to Clistbox - Always comes in client area and can't adjust "Listbox" not to update right over it.
Tried tinkering with ondraw to ignore that area -That worked until the window was scrolled. It also mucked the record selection on mouse down.

Gave up on that line
created the toolbar on the parent -- Tried subclassing toolbar to the listbox -- again failure
Seems you can't subclass to a window that exists or is on permanent map

Now I could easily intercept/push the messages from the parent to the derived class via parents WndProc -- But then
its not a stand-alone class UGLY

So now I'm looking for a way to basically derive a class from "something" comprising 2 controls a listbox and a toolbar

And there I'm lost
Any help/links/examples will be appreciated
AnswerRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Eugen Podsypalnikov5-Feb-12 20:32
Eugen Podsypalnikov5-Feb-12 20:32 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1235-Feb-12 23:48
Fallen1235-Feb-12 23:48 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1238-Feb-12 1:51
Fallen1238-Feb-12 1:51 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Jochen Arndt8-Feb-12 2:04
professionalJochen Arndt8-Feb-12 2:04 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1238-Feb-12 2:44
Fallen1238-Feb-12 2:44 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Jochen Arndt8-Feb-12 3:19
professionalJochen Arndt8-Feb-12 3:19 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1238-Feb-12 4:04
Fallen1238-Feb-12 4:04 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Jochen Arndt8-Feb-12 4:20
professionalJochen Arndt8-Feb-12 4:20 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1238-Feb-12 4:44
Fallen1238-Feb-12 4:44 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Eugen Podsypalnikov8-Feb-12 4:53
Eugen Podsypalnikov8-Feb-12 4:53 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1239-Feb-12 10:19
Fallen1239-Feb-12 10:19 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Eugen Podsypalnikov9-Feb-12 20:30
Eugen Podsypalnikov9-Feb-12 20:30 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen12310-Feb-12 5:35
Fallen12310-Feb-12 5:35 
AnswerRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Richard MacCutchan5-Feb-12 23:17
mveRichard MacCutchan5-Feb-12 23:17 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1235-Feb-12 23:38
Fallen1235-Feb-12 23:38 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Richard MacCutchan6-Feb-12 0:04
mveRichard MacCutchan6-Feb-12 0:04 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1236-Feb-12 0:35
Fallen1236-Feb-12 0:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.