Hello, I am kind a newcomer in work with c++.
I need some help with creating class.
I want to create a button (toolbar) class, but I have created toobar and button in simple way:
char buffer[25] = "x";
char buffer2[25] = "xx";
char buffer3[25] = "xxx
HWND CreateToolbar(HWND hWnd,DWORD dwStyle,UINT uCom)
{
static TBBUTTON but[3];
but[0].idCommand=CM_1;
but[0].fsState= TBSTATE_ENABLED;
//but[0].fsStyle=TBSTYLE_BUTTON;
but[0].iString = (int) buffer;
but[1].idCommand=CM_2;
but[1].fsState= TBSTATE_ENABLED;
//but[1].fsStyle=TBSTYLE_BUTTON;
but[1].iString = (int) buffer2 ;
but[2].idCommand=CM_3;
but[2].fsState=TBSTATE_ENABLED;
//but[2].fsStyle=TBSTYLE_BUTTON;
but[2].iString = (int) buffer3;
return CreateToolbarEx(hWnd, WS_VISIBLE | WS_CHILD |WS_BORDER | TBSTYLE_WRAPABLE, // wrapable,
0,3,hInstance, 0,but,3,
157,13,0,0,
sizeof(TBBUTTON));
So how it would look in class realization..
I hope that someone could help me
thanks