Click here to Skip to main content
16,004,887 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: New Forum for MC++ Pin
Mike Nordell23-Apr-02 9:47
Mike Nordell23-Apr-02 9:47 
GeneralDSN doesn't show up in Data Source Admin Pin
Craig Miller23-Apr-02 7:39
Craig Miller23-Apr-02 7:39 
GeneralSearch binary file fro string Pin
Xtorpia23-Apr-02 7:08
Xtorpia23-Apr-02 7:08 
GeneralRe: Search binary file fro string Pin
Bill Wilson23-Apr-02 7:24
Bill Wilson23-Apr-02 7:24 
GeneralRe: Search binary file fro string Pin
Albert Pascual23-Apr-02 7:37
sitebuilderAlbert Pascual23-Apr-02 7:37 
GeneralCharacter sets Pin
albean23-Apr-02 6:50
albean23-Apr-02 6:50 
GeneralRe: Character sets Pin
jbarton23-Apr-02 7:19
jbarton23-Apr-02 7:19 
GeneralCToolBar VS CToolBarCtrl Pin
dazinith23-Apr-02 6:22
dazinith23-Apr-02 6:22 
i have been using CToolBar but it only allows 16 colors (as far as I can tell).. so i tried switching to CToolBarCtrl.. but I never get any toolbar to appear.. can someone tell me what in my code is causing the toolbar to not show up, also does the AddButtons() command only take one TBBUTTON at a time?

I've been looking through msdn and on CP today, but can't find a basic example of thie CToolBarCtrl that works, as most of them call a command GetToolBarCtrl() which isn't a member of CToolBarCtrl, but rather CToolBar.. any help would be much appreciated!

i just want the toolbar to show up, from there i can add all my other button code:


m_wndToolBar.CreateEx(WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_FLYBY | CBRS_SIZE_DYNAMIC, WS_CHILD, CRect(CPoint(0,0),CPoint(500,510)), this, IDR_MAINFRAME);

m_wndToolBar.AddBitmap(17, IDB_SCTOOLBAR);

TBBUTTON btn;
btn.fsStyle = TBSTYLE_BUTTON;
btn.fsState = TBSTATE_ENABLED;
btn.idCommand = ID_FILE_NEW;
btn.iBitmap = 1;
m_wndToolBar.AddButtons(1, &btn);


also, what is the point of the CRect getting passed in the CreateEx? I have no idea what size CRect to pass here..

thanks! Confused | :confused: Smile | :)

-dz
GeneralRe: CToolBar VS CToolBarCtrl Pin
Shog923-Apr-02 8:35
sitebuilderShog923-Apr-02 8:35 
GeneralRe: CToolBar VS CToolBarCtrl Pin
dazinith24-Apr-02 4:20
dazinith24-Apr-02 4:20 
GeneralCreate CScrollBar into the CEdit Pin
Eugene Pustovoyt23-Apr-02 6:18
Eugene Pustovoyt23-Apr-02 6:18 
GeneralRe: Create CScrollBar into the CEdit Pin
Roger Allen23-Apr-02 6:42
Roger Allen23-Apr-02 6:42 
GeneralRe: Create CScrollBar into the CEdit Pin
Eugene Pustovoyt23-Apr-02 9:18
Eugene Pustovoyt23-Apr-02 9:18 
GeneralRe: Create CScrollBar into the CEdit Pin
Roger Allen23-Apr-02 21:38
Roger Allen23-Apr-02 21:38 
GeneralRe: Create CScrollBar into the CEdit Pin
Eugene Pustovoyt24-Apr-02 7:58
Eugene Pustovoyt24-Apr-02 7:58 
GeneralRe: Create CScrollBar into the CEdit Pin
Ravi Bhavnani24-Apr-02 8:06
professionalRavi Bhavnani24-Apr-02 8:06 
Questionhoow to owner draw controls? Pin
DiegoValdevino23-Apr-02 5:36
DiegoValdevino23-Apr-02 5:36 
AnswerRe: hoow to owner draw controls? Pin
Mazdak23-Apr-02 5:40
Mazdak23-Apr-02 5:40 
AnswerRe: hoow to owner draw controls? Pin
Thomas Freudenberg23-Apr-02 5:55
Thomas Freudenberg23-Apr-02 5:55 
QuestionIncrement an int value in a char array? Pin
23-Apr-02 5:33
suss23-Apr-02 5:33 
AnswerRe: Increment an int value in a char array? Pin
Tim Smith23-Apr-02 5:55
Tim Smith23-Apr-02 5:55 
GeneralRe: Increment an int value in a char array? Pin
23-Apr-02 7:10
suss23-Apr-02 7:10 
GeneralUser defined Message Pin
act_x23-Apr-02 5:19
act_x23-Apr-02 5:19 
GeneralTransparent windows. Pin
23-Apr-02 5:11
suss23-Apr-02 5:11 
GeneralRe: Transparent windows. Pin
Paul M Watt23-Apr-02 5:20
mentorPaul M Watt23-Apr-02 5:20 

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.