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

ATL / WTL / STL

 
QuestionGet Frame window Handle Pin
HakunaMatada10-Jul-06 17:58
HakunaMatada10-Jul-06 17:58 
AnswerRe: Get Frame window Handle Pin
Arman S.11-Jul-06 3:01
Arman S.11-Jul-06 3:01 
GeneralRe: Get Frame window Handle Pin
HakunaMatada11-Jul-06 3:25
HakunaMatada11-Jul-06 3:25 
GeneralRe: Get Frame window Handle Pin
Arman S.11-Jul-06 3:57
Arman S.11-Jul-06 3:57 
QuestionHow do I do this ? [modified] Pin
Smith#10-Jul-06 2:49
Smith#10-Jul-06 2:49 
AnswerRe: How do I do this ? Pin
Kurt _B12-Jul-06 5:42
Kurt _B12-Jul-06 5:42 
AnswerRe: How do I do this ? Pin
Pharago16-Jul-06 0:29
Pharago16-Jul-06 0:29 
QuestionHow to create dropdown style button using TBSTYLE_DROPDOWN Pin
shivditya10-Jul-06 1:48
shivditya10-Jul-06 1:48 
I was very well able to create toolbar and buttons on it .
but how to use TBSTYLE_DROPDOWN and create the DropDown Button.

SendMessage(m_hWnd, TB_BUTTONSTRUCTSIZE, (2 * sizeof(TBBUTTON)), 0);
SendMessage(m_hWnd, TB_SETMAXTEXTROWS, 1, 0L);// Decides size of button (length)
HICON mh1 = LoadIcon(_Module.GetResourceInstance(), MAKEINTRESOURCE(IDI_ICON1));
HICON mh2 = LoadIcon(_Module.GetResourceInstance(), MAKEINTRESOURCE(IDI_ICON2));


m_hImageList = ImageList_Create(16,16, ILC_COLOR16, 1, 0);
int iI1 = ImageList_AddIcon(m_hImageList, mh1); //NO USE OF iI1
int iI2 = ImageList_AddIcon(m_hImageList, mh2);
// Set the toolbar's image
::SendMessage(m_hWnd, TB_SETIMAGELIST,0, (LPARAM)m_hImageList);

TBBUTTON Button1;
ZeroMemory((void*)&Button1, sizeof(TBBUTTON));
Button1.idCommand = IDM_GETQUOTE1;
Button1.fsState = TBSTATE_ENABLED;
Button1.dwData = 0;
Button1.iBitmap = MAKELONG(0, 0);
::SendMessage(m_hWnd, TB_INSERTBUTTON,0, (LPARAM)&Button1);

TBBUTTON Button2;
ZeroMemory((void*)&Button2, sizeof(TBBUTTON));
Button2.idCommand = IDM_GETQUOTE2;
Button2.fsState = TBSTATE_ENABLED;
Button2.dwData = 0;
Button2.iBitmap = MAKELONG(1, 0);
::SendMessage(m_hWnd, TB_INSERTBUTTON, 0, (LPARAM)&Button2);

We can write Buttonxyz.fsStyle |= TBSTYLE_DROPDOWN;
but how to add extra buttons.




|| ART OF LIVING ||
QuestionWhat Design Pattern does ATL/COM is based upon Pin
Balkrishna Talele10-Jul-06 1:40
Balkrishna Talele10-Jul-06 1:40 
AnswerRe: What Design Pattern does ATL/COM is based upon Pin
shivditya10-Jul-06 2:06
shivditya10-Jul-06 2:06 
AnswerRe: What Design Pattern does ATL/COM is based upon Pin
ThatsAlok10-Jul-06 23:25
ThatsAlok10-Jul-06 23:25 
QuestionMemory leak in CComVariant changetype Pin
rana749-Jul-06 20:59
rana749-Jul-06 20:59 
QuestionGraceful thread exit Pin
rana746-Jul-06 21:03
rana746-Jul-06 21:03 
AnswerRe: Graceful thread exit Pin
Arman S.11-Jul-06 3:08
Arman S.11-Jul-06 3:08 
QuestionHTTP Auth Intercept/Password Form Processing using IE Pin
harningt6-Jul-06 7:26
harningt6-Jul-06 7:26 
QuestionSTD::String replace Pin
snir_ya6-Jul-06 6:38
snir_ya6-Jul-06 6:38 
AnswerRe: STD::String replace Pin
Igor Vigdorchik6-Jul-06 8:38
Igor Vigdorchik6-Jul-06 8:38 
AnswerRe: STD::String replace Pin
Roland Pibinger7-Jul-06 12:21
Roland Pibinger7-Jul-06 12:21 
AnswerRe: STD::String replace Pin
Stuart Dootson6-Jul-06 22:01
professionalStuart Dootson6-Jul-06 22:01 
AnswerRe: STD::String replace Pin
Roland Pibinger7-Jul-06 12:30
Roland Pibinger7-Jul-06 12:30 
QuestionHow to implement WTL Pin
shivditya6-Jul-06 0:48
shivditya6-Jul-06 0:48 
AnswerRe: How to implement WTL Pin
Justin Tay6-Jul-06 3:52
Justin Tay6-Jul-06 3:52 
QuestionAdd toolbar to IExplorer Pin
HarishDixit5-Jul-06 23:31
HarishDixit5-Jul-06 23:31 
AnswerRe: Add toolbar to IExplorer Pin
shivditya6-Jul-06 0:41
shivditya6-Jul-06 0:41 
QuestionGetting hover buttons function [modified] Pin
Prem865-Jul-06 19:26
Prem865-Jul-06 19:26 

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.