Click here to Skip to main content
15,904,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compile error.Please help me. Pin
KarstenK27-Feb-03 1:55
mveKarstenK27-Feb-03 1:55 
GeneralRe: Compile error.Please help me. Pin
dix27-Feb-03 2:16
dix27-Feb-03 2:16 
GeneralRe: Compile error.Please help me. Pin
KarstenK27-Feb-03 3:53
mveKarstenK27-Feb-03 3:53 
GeneralHide Application Pin
vikramlinux27-Feb-03 0:37
vikramlinux27-Feb-03 0:37 
GeneralRe: Hide Application Pin
Simon.W27-Feb-03 2:31
Simon.W27-Feb-03 2:31 
QuestionLinker includes unused functions in output exe?? Pin
Rok27-Feb-03 0:05
Rok27-Feb-03 0:05 
AnswerRe: Linker includes unused functions in output exe?? Pin
Hans Ruck27-Feb-03 0:43
Hans Ruck27-Feb-03 0:43 
GeneralHelp required in case of a tool bar :( Pin
Farrukh4u27-Feb-03 0:04
Farrukh4u27-Feb-03 0:04 
plz some one help me out,

the two methods that set up information abt a button on a toolbar (CToolBarCtrl) are not working properly.

1) GetButtonInfo
2) SetButtonInfo

i am using the following code and these functions are returning false always.

bool MYToolbar::Create(CRect rcClientParent, CWnd *pWndParent)
{
if (!CToolBarCtrl::Create(DEFAULT_TOOLBAR_STYLE , rcClientParent, pWndParent, IDR_IETOOLBAR))
return false;
SetExtendedStyle(TBSTYLE_EX_DRAWDDARROWS | TBSTYLE_EX_MIXEDBUTTONS);
BOOL res;
SendMessage(TB_SETEXTENDEDSTYLE, 0,TBSTYLE_EX_DRAWDDARROWS); // set style to draw arrows for drop down buttons
SendMessage(TB_SETEXTENDEDSTYLE, 0,TBSTYLE_EX_MIXEDBUTTONS);
CSize size;
size.cx=200;
size.cy= 20;

res = SetButtonSize(size);
if(!res)
{
MessageBox("no sizing of buttons");
}

if (AddBitmap(4, IDR_IETOOLBAR) == -1)
{
DWORD dwError = ::GetLastError();
return false;
}

TBBUTTON tbs[/*NUM_TOOLBAR_BUTTONS*/4];
for (int i = 0; i < /*NUM_TOOLBAR_BUTTONS*/4; i++)
{
tbs[i].dwData = 0;
tbs[i].fsState = TBSTATE_ENABLED;
tbs[i].fsStyle = TBSTYLE_BUTTON;
tbs[i].iBitmap = i;//i;
tbs[i].idCommand = ID_BTN_MSGTYPE + i;
tbs[i].iString = i;
}

tbs[0].fsStyle = TBSTYLE_AUTOSIZE|BTNS_WHOLEDROPDOWN|TBSTYLE_BUTTON|TBSTATE_ENABLED;
tbs[1].fsStyle = TBSTYLE_AUTOSIZE|TBSTYLE_DROPDOWN|TBSTYLE_BUTTON|TBSTATE_ENABLED;
if (!AddButtons(4, tbs))
return false;
LPTBBUTTONINFO tbi= new TBBUTTONINFO;
int res=GetButtonInfo(0,tbi);
tbi->cbSize = sizeof(TBBUTTONINFO);
tbi->dwMask = TBIF_SIZE;
tbi->cx = 20;
res=mytb.SetButtonInfo(0,tbi);

return true;
}

ur help will make my day.
Farrukh
GeneralRe: Help required in case of a tool bar :( Pin
Rage27-Feb-03 2:04
professionalRage27-Feb-03 2:04 
GeneralAbout ListView Pin
Robe26-Feb-03 23:51
Robe26-Feb-03 23:51 
GeneralRe: About ListView Pin
Joan M27-Feb-03 1:05
professionalJoan M27-Feb-03 1:05 
QuestionHow to attach C++ class to COM object? Pin
Pavel Krupets26-Feb-03 23:50
Pavel Krupets26-Feb-03 23:50 
Questionhow to fetch email from aol or hotmail? Pin
coolvcguy26-Feb-03 22:50
coolvcguy26-Feb-03 22:50 
AnswerRe: how to fetch email from aol or hotmail? Pin
bryce27-Feb-03 0:17
bryce27-Feb-03 0:17 
GeneralRe: how to fetch email from aol or hotmail? Pin
coolvcguy27-Feb-03 18:05
coolvcguy27-Feb-03 18:05 
GeneralRe: how to fetch email from aol or hotmail? Pin
bryce27-Feb-03 22:28
bryce27-Feb-03 22:28 
AnswerRe: how to fetch email from aol or hotmail? Pin
Renjith Ramachandran27-Feb-03 2:55
Renjith Ramachandran27-Feb-03 2:55 
GeneralRe: how to fetch email from aol or hotmail? Pin
coolvcguy27-Feb-03 18:15
coolvcguy27-Feb-03 18:15 
GeneralRe: how to fetch email from aol or hotmail? Pin
coolvcguy27-Feb-03 18:16
coolvcguy27-Feb-03 18:16 
GeneralRe: how to fetch email from aol or hotmail? Pin
bryce27-Feb-03 18:55
bryce27-Feb-03 18:55 
GeneralRe: how to fetch email from aol or hotmail? Pin
coolvcguy27-Feb-03 19:18
coolvcguy27-Feb-03 19:18 
GeneralAssociating a value with Tree Node Pin
Ph@ntom26-Feb-03 22:26
Ph@ntom26-Feb-03 22:26 
GeneralRe: Associating a value with Tree Node Pin
567890123427-Feb-03 1:47
567890123427-Feb-03 1:47 
GeneralIntercepting WM_QUERYENDSESSION Pin
Master Vip26-Feb-03 21:46
Master Vip26-Feb-03 21:46 
GeneralRe: Intercepting WM_QUERYENDSESSION Pin
Hans Ruck26-Feb-03 21:55
Hans Ruck26-Feb-03 21:55 

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.