Click here to Skip to main content
15,908,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Application Icon Pin
KevinHall18-Nov-02 6:34
KevinHall18-Nov-02 6:34 
GeneralRe: Application Icon Pin
Shog918-Nov-02 7:49
sitebuilderShog918-Nov-02 7:49 
GeneralRe: Application Icon Pin
carpediem18-Nov-02 12:57
carpediem18-Nov-02 12:57 
GeneralRe: Application Icon Pin
Shog918-Nov-02 13:09
sitebuilderShog918-Nov-02 13:09 
GeneralRe: Application Icon Pin
Al_Pennyworth18-Nov-02 13:14
Al_Pennyworth18-Nov-02 13:14 
GeneralRe: Application Icon Pin
Shog918-Nov-02 13:23
sitebuilderShog918-Nov-02 13:23 
GeneralRe: Application Icon Pin
carpediem18-Nov-02 13:35
carpediem18-Nov-02 13:35 
GeneralRe: Application Icon Pin
Shog918-Nov-02 17:32
sitebuilderShog918-Nov-02 17:32 
I don't have any example code at hand right now (at home, eating Smile | :) ), but here's the process in a nutshell:

  1. Create the toolbar with CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD|WS_VISIBLE|TBSTYLE_FLAT|TBSTYLE_WRAPABLE, 0, 0, 0, 0, hwndParent, (HMENU)ID_TOOLBAR, hInstance, NULL); or similar.
  2. Use ImageList_Create() to create an image list of the appropriate size for your bitmap.
  3. Use ImageList_Add() or ImageList_AddMasked() to add bitmaps to the image list. Use ImageList_AddIcon() to add icons to it.
  4. Send the TB_SETIMAGELIST message to the toolbar, associating the image list with it.
  5. Send the TB_BUTTONSTRUCTSIZE message to the toolbar, informing it of the size of the TBBUTTON structure you'll be using.
  6. Send the TB_ADDBUTTONS message to the toolbar, adding buttons as necessary.


This leaves out a lot of detail, i know, but give a look through MSDN for each step, and i think it'll make sense. If not, post back tomorrow & i'll see what i can do.

Shog9
------
Sitting in muddy water
isn't such a bad life,
if it ends after the first time... - Yoko Kanno, The Real Folk Blues

GeneralRe: Application Icon Pin
carpediem19-Nov-02 7:16
carpediem19-Nov-02 7:16 
GeneralRe: Application Icon Pin
Shog919-Nov-02 7:28
sitebuilderShog919-Nov-02 7:28 
GeneralShould be an easy question.. Splitter Pin
RobJones18-Nov-02 5:45
RobJones18-Nov-02 5:45 
GeneralRe: Should be an easy question.. Splitter Pin
Georgi Atanasov18-Nov-02 6:55
Georgi Atanasov18-Nov-02 6:55 
GeneralRe: Should be an easy question.. Splitter Pin
Georgi Atanasov18-Nov-02 7:04
Georgi Atanasov18-Nov-02 7:04 
GeneralRe: Should be an easy question.. Splitter Pin
Gary R. Wheeler18-Nov-02 15:28
Gary R. Wheeler18-Nov-02 15:28 
Questionhow to read a DWORD value from registry Pin
SAK18-Nov-02 5:32
SAK18-Nov-02 5:32 
AnswerRe: how to read a DWORD value from registry Pin
Jason Henderson18-Nov-02 5:39
Jason Henderson18-Nov-02 5:39 
GeneralRe: how to read a DWORD value from registry Pin
Jason Henderson18-Nov-02 5:40
Jason Henderson18-Nov-02 5:40 
AnswerRe: how to read a DWORD value from registry Pin
Alvaro Mendez18-Nov-02 5:44
Alvaro Mendez18-Nov-02 5:44 
Generalfile processing Pin
MikeDeming18-Nov-02 5:06
MikeDeming18-Nov-02 5:06 
GeneralRe: file processing Pin
Alexandru Savescu18-Nov-02 5:08
Alexandru Savescu18-Nov-02 5:08 
GeneralRe: file processing Pin
Nick Parker18-Nov-02 5:33
protectorNick Parker18-Nov-02 5:33 
GeneralRe: file processing Pin
Joaquín M López Muñoz18-Nov-02 9:35
Joaquín M López Muñoz18-Nov-02 9:35 
GeneralRe: file processing Pin
Ravi Bhavnani18-Nov-02 7:06
professionalRavi Bhavnani18-Nov-02 7:06 
GeneralRe: file processing Pin
MikeDeming18-Nov-02 8:12
MikeDeming18-Nov-02 8:12 
GeneralRe: file processing Pin
Ravi Bhavnani18-Nov-02 8:58
professionalRavi Bhavnani18-Nov-02 8:58 

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.