Click here to Skip to main content
16,011,988 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAfxGetResourceHandle Pin
Jose Vicente16-Jul-02 4:35
Jose Vicente16-Jul-02 4:35 
GeneralRe: AfxGetResourceHandle Pin
joblemar16-Jul-02 5:09
sussjoblemar16-Jul-02 5:09 
Generalmaking a toolbar button invisible Pin
ns16-Jul-02 4:21
ns16-Jul-02 4:21 
GeneralRe: making a toolbar button invisible Pin
Rage16-Jul-02 4:51
professionalRage16-Jul-02 4:51 
GeneralRe: making a toolbar button invisible Pin
Shog916-Jul-02 7:19
sitebuilderShog916-Jul-02 7:19 
GeneralRe: making a toolbar button invisible Pin
ns16-Jul-02 7:44
ns16-Jul-02 7:44 
GeneralRe: making a toolbar button invisible Pin
ns16-Jul-02 8:07
ns16-Jul-02 8:07 
GeneralRe: making a toolbar button invisible Pin
Shog916-Jul-02 8:49
sitebuilderShog916-Jul-02 8:49 
The toolbar is *not* a child of the view, so the line
m_pToolBar = (CToolBar*)GetDlgItem(IDR_MAINFRAME);
isn't going to work. If you used the app wizard to start your program, the CMainFrame class will have a member m_wndToolBar that is the toolbar. You can create an access method for this, or just put your code in CMainFrame to start with (if it's only purpose is doing stuff to toolbars, it probably belongs there anyway).

--------

PMGRE

--Shog9 --


GeneralThanks, and also... Pin
ns16-Jul-02 9:07
ns16-Jul-02 9:07 
GeneralRe: Thanks, and also... Pin
Shog916-Jul-02 9:33
sitebuilderShog916-Jul-02 9:33 
Generalthank you Pin
ns16-Jul-02 9:25
ns16-Jul-02 9:25 
Generaldllimport vs dllexport Pin
Mike Zinni16-Jul-02 4:09
Mike Zinni16-Jul-02 4:09 
GeneralRe: dllimport vs dllexport Pin
Alexandru Savescu16-Jul-02 4:17
Alexandru Savescu16-Jul-02 4:17 
GeneralRe: dllimport vs dllexport Pin
Mike Zinni16-Jul-02 4:45
Mike Zinni16-Jul-02 4:45 
GeneralRe: dllimport vs dllexport Pin
Mike Zinni16-Jul-02 5:02
Mike Zinni16-Jul-02 5:02 
GeneralRe: dllimport vs dllexport Pin
Mike Nordell16-Jul-02 5:24
Mike Nordell16-Jul-02 5:24 
GeneralRe: dllimport vs dllexport Pin
Daniel Lohmann17-Jul-02 14:23
Daniel Lohmann17-Jul-02 14:23 
QuestionSTL iterators? Pin
Fredrik Skog16-Jul-02 4:00
Fredrik Skog16-Jul-02 4:00 
AnswerRe: STL iterators? Pin
Alexandru Savescu16-Jul-02 4:08
Alexandru Savescu16-Jul-02 4:08 
GeneralRe: STL iterators? Pin
Fredrik Skog16-Jul-02 4:12
Fredrik Skog16-Jul-02 4:12 
GeneralRe: STL iterators? Pin
Alexandru Savescu16-Jul-02 4:22
Alexandru Savescu16-Jul-02 4:22 
GeneralRe: STL iterators? Pin
Fredrik Skog16-Jul-02 4:30
Fredrik Skog16-Jul-02 4:30 
GeneralRe: STL iterators? Pin
Alexandru Savescu16-Jul-02 4:35
Alexandru Savescu16-Jul-02 4: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.