Click here to Skip to main content
15,796,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1238-Feb-12 5:44
Fallen1238-Feb-12 5:44 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Eugen Podsypalnikov8-Feb-12 5:53
Eugen Podsypalnikov8-Feb-12 5:53 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1239-Feb-12 11:19
Fallen1239-Feb-12 11:19 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Eugen Podsypalnikov9-Feb-12 21:30
Eugen Podsypalnikov9-Feb-12 21:30 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen12310-Feb-12 6:35
Fallen12310-Feb-12 6:35 
AnswerRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Richard MacCutchan6-Feb-12 0:17
mveRichard MacCutchan6-Feb-12 0:17 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1236-Feb-12 0:38
Fallen1236-Feb-12 0:38 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Richard MacCutchan6-Feb-12 1:04
mveRichard MacCutchan6-Feb-12 1:04 
I'm not sure what you are trying to do here. What are you subclassing and why? You have a toolbar, so, as you click a button your dialog will receive a WM_COMMAND message, which you can then pass to the appropriate handler.


BTW please format your code a bit and put it inside a code block (via the code button above or with <pre> tags) so it's readable, like this:
C++
if (m_tools.GetSafeHwnd()!= NULL)
    m_tools.DestroyWindow();
if (!m_tools.CreateEx(this->GetParent(), TBSTYLE_FLAT | CBRS_FLOATING | CBRS_TOOLTIPS | CBRS_FLYBY))
    MessageBox(_T("Failed to create toolbar\n"));
// ...

Much more readable.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman



GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1236-Feb-12 1:35
Fallen1236-Feb-12 1:35 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Richard MacCutchan6-Feb-12 2:14
mveRichard MacCutchan6-Feb-12 2:14 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1236-Feb-12 3:16
Fallen1236-Feb-12 3:16 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Richard MacCutchan6-Feb-12 4:03
mveRichard MacCutchan6-Feb-12 4:03 
GeneralRe: VS 2010 MFC derived CListbox with dynamically addedCtoolbar Pin
Fallen1236-Feb-12 7:35
Fallen1236-Feb-12 7:35 
QuestionSegFault Pin
chidacode5-Feb-12 8:07
chidacode5-Feb-12 8:07 
AnswerRe: SegFault Pin
Albert Holguin5-Feb-12 9:45
professionalAlbert Holguin5-Feb-12 9:45 
AnswerRe: SegFault Pin
CPallini5-Feb-12 22:57
mveCPallini5-Feb-12 22:57 
GeneralRe: SegFault Pin
Albert Holguin6-Feb-12 11:14
professionalAlbert Holguin6-Feb-12 11:14 
AnswerRe: SegFault Pin
Stephen Hewitt6-Feb-12 5:07
Stephen Hewitt6-Feb-12 5:07 
QuestionTCP/IP problems Pin
ForNow4-Feb-12 17:27
ForNow4-Feb-12 17:27 
AnswerRe: TCP/IP problems Pin
Mohibur Rashid5-Feb-12 5:34
professionalMohibur Rashid5-Feb-12 5:34 
AnswerRe: TCP/IP problems Pin
Albert Holguin5-Feb-12 9:42
professionalAlbert Holguin5-Feb-12 9:42 
GeneralRe: TCP/IP problems Pin
ForNow5-Feb-12 13:14
ForNow5-Feb-12 13:14 
GeneralRe: TCP/IP problems Pin
Albert Holguin5-Feb-12 14:46
professionalAlbert Holguin5-Feb-12 14:46 
GeneralRe: TCP/IP problems Pin
ForNow5-Feb-12 17:05
ForNow5-Feb-12 17:05 
Questionsystem phisycal drive Pin
RomTibi4-Feb-12 7:15
RomTibi4-Feb-12 7:15 

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.