Click here to Skip to main content
15,913,282 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL Fix Pin
jhwurmbach30-Mar-03 22:28
jhwurmbach30-Mar-03 22:28 
GeneralRe: STL Fix Pin
Derek Lakin30-Mar-03 23:52
Derek Lakin30-Mar-03 23:52 
GeneralRe: STL Fix Pin
Derek Lakin31-Mar-03 2:03
Derek Lakin31-Mar-03 2:03 
GeneralRe: STL Fix Pin
jhwurmbach31-Mar-03 2:11
jhwurmbach31-Mar-03 2:11 
GeneralRe: STL Fix Pin
Derek Lakin31-Mar-03 20:49
Derek Lakin31-Mar-03 20:49 
GeneralRe: STL Fix Pin
Chris Losinger4-Apr-03 3:59
professionalChris Losinger4-Apr-03 3:59 
GeneralRe: STL Fix Pin
John M. Drescher4-Apr-03 4:19
John M. Drescher4-Apr-03 4:19 
General2 Tbbuttons Pin
DuFF30-Mar-03 16:22
DuFF30-Mar-03 16:22 
**[EDIT] Figured out how to do it myself. [/EDIT]**



Hey, I was looking at the IE Deskband Tutorial and it shows how to add a button to your deskband. But I am not sure how to add another button to this, can anyone help me out? THanks.

Here is what is in the tutorial:

TCHAR* pCaption = _T("Get Quote");<br />
   int iIndex = ::SendMessage(m_hWnd, TB_ADDSTRING, 0,(LPARAM)pCaption);<br />
<br />
   // load our button's icon and create the image list to house it.<br />
   HICON hMotley = LoadIcon(_Module.GetResourceInstance(), MAKEINTRESOURCE(IDI_MOTLEY));<br />
   m_hImageList = ImageList_Create(16,16, ILC_COLOR16, 1, 0);<br />
   int iImageIndex = ImageList_AddIcon(m_hImageList, hMotley);<br />
   DestroyIcon(hMotley);<br />
   // Set the toolbar's image<br />
   ::SendMessage(m_hWnd, TB_SETIMAGELIST, 0, (LPARAM)m_hImageList);<br />
<br />
   // add the button for the toolbar to the window<br />
   TBBUTTON Button;<br />
   ZeroMemory((void*)&Button, sizeof(TBBUTTON));<br />
   Button.idCommand = IDM_GETQUOTE;<br />
   Button.fsState = TBSTATE_ENABLED;<br />
   Button.fsStyle = BTNS_BUTTON | BTNS_AUTOSIZE | BTNS_SHOWTEXT;<br />
   Button.dwData = 0;<br />
   Button.iString = iIndex;<br />
   Button.iBitmap = 0;<br />
   ::SendMessage(m_hWnd, TB_INSERTBUTTON, 0, (LPARAM)&Button);<br />

GeneralAssignment operator with ofstream Pin
Anonymous28-Mar-03 5:26
Anonymous28-Mar-03 5:26 
GeneralRe: Assignment operator with ofstream Pin
Ralph Wetzel28-Mar-03 5:54
Ralph Wetzel28-Mar-03 5:54 
GeneralRe: Assignment operator with ofstream Pin
Joaquín M López Muñoz28-Mar-03 5:54
Joaquín M López Muñoz28-Mar-03 5:54 
GeneralATL events in a container Pin
Shah Shehpori28-Mar-03 4:56
sussShah Shehpori28-Mar-03 4:56 
Generalvector reallocation giving problem (repost) Pin
Anonymous27-Mar-03 13:01
Anonymous27-Mar-03 13:01 
GeneralRe: vector reallocation giving problem (repost) Pin
Taka Muraoka27-Mar-03 13:23
Taka Muraoka27-Mar-03 13:23 
GeneralRe: vector reallocation giving problem (repost) Pin
jhwurmbach30-Mar-03 22:34
jhwurmbach30-Mar-03 22:34 
Questionvector rellocation giving problem? Pin
Anonymous27-Mar-03 11:54
Anonymous27-Mar-03 11:54 
AnswerRe: vector rellocation giving problem? Pin
Anonymous27-Mar-03 11:59
Anonymous27-Mar-03 11:59 
GeneralUisng ATL7 CMimeMessage classes Pin
Amit Dey26-Mar-03 22:32
Amit Dey26-Mar-03 22:32 
GeneralRe: Uisng ATL7 CMimeMessage classes Pin
geo_m26-Mar-03 23:56
geo_m26-Mar-03 23:56 
GeneralRe: Uisng ATL7 CMimeMessage classes Pin
Amit Dey28-Mar-03 18:53
Amit Dey28-Mar-03 18:53 
GeneralRe: Uisng ATL7 CMimeMessage classes Pin
geo_m28-Mar-03 22:04
geo_m28-Mar-03 22:04 
GeneralRe: Using ATL7 CMimeMessage classes Pin
Amit Dey29-Mar-03 21:37
Amit Dey29-Mar-03 21:37 
GeneralRe: Using ATL7 CMimeMessage classes Pin
Amit Dey29-Mar-03 21:39
Amit Dey29-Mar-03 21:39 
GeneralRe: Using ATL7 CMimeMessage classes Pin
geo_m29-Mar-03 22:49
geo_m29-Mar-03 22:49 
GeneralRe: Using ATL7 CMimeMessage classes Pin
Amit Dey30-Mar-03 8:47
Amit Dey30-Mar-03 8:47 

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.