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

C / C++ / MFC

 
QuestionDisabling scroll bar Pin
karmendra_js7-Oct-05 21:33
karmendra_js7-Oct-05 21:33 
AnswerRe: Disabling scroll bar Pin
Mircea Puiu8-Oct-05 21:18
Mircea Puiu8-Oct-05 21:18 
QuestionRefresh Pin
Member 20251767-Oct-05 21:12
Member 20251767-Oct-05 21:12 
AnswerRe: Refresh Pin
ThatsAlok7-Oct-05 21:36
ThatsAlok7-Oct-05 21:36 
AnswerRe: Refresh Pin
Bob Stanneveld8-Oct-05 0:15
Bob Stanneveld8-Oct-05 0:15 
QuestionChange Caption Pin
Member 20251767-Oct-05 21:06
Member 20251767-Oct-05 21:06 
AnswerRe: Change Caption Pin
ThatsAlok7-Oct-05 21:29
ThatsAlok7-Oct-05 21:29 
QuestionRebar Pin
karmendra_js7-Oct-05 20:48
karmendra_js7-Oct-05 20:48 
I am using VC++ of Visual Studio .NET.

The problem here is When I create two tool bars and add them to a rebar as follows the two toolbars will be at each side. I want them both to be Left Aligned one after the other.

Note: the very same code works as i want in VC++ 6 of Visual Studio 6.
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
    /*| CBRS_GRIPPER*/ | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
    !m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
    TRACE0("Failed to create toolbar\n");
    return -1;      // fail to create
}

if (!m_wndClientToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
    /*| CBRS_GRIPPER*/ | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
    !m_wndClientToolBar.LoadToolBar(IDR_CLIENTTOOLBAR))
{
    TRACE0("Failed to create toolbar\n");
    return -1;      // fail to create
}

if (!m_wndReBar.Create(this) ||
    !m_wndReBar.AddBar(&m_wndToolBar) ||
    !m_wndReBar.AddBar(&m_wndClientToolBar))
{
    TRACE0("Failed to create rebar\n");
    return -1;      // fail to create
}

if (!m_wndStatusBar.Create(this) ||
    !m_wndStatusBar.SetIndicators(indicators,
      sizeof(indicators)/sizeof(UINT)))
{
    TRACE0("Failed to create status bar\n");
    return -1;      // fail to create
}




Thanks.
QuestionExplain in brief this error... Pin
Supriya Tonape7-Oct-05 20:10
Supriya Tonape7-Oct-05 20:10 
AnswerRe: Explain in brief this error... Pin
ThatsAlok7-Oct-05 20:36
ThatsAlok7-Oct-05 20:36 
GeneralRe: Explain in brief this error... Pin
Supriya Tonape7-Oct-05 20:46
Supriya Tonape7-Oct-05 20:46 
GeneralRe: Explain in brief this error... Pin
S. Senthil Kumar7-Oct-05 21:15
S. Senthil Kumar7-Oct-05 21:15 
GeneralRe: Explain in brief this error... Pin
Supriya Tonape7-Oct-05 22:32
Supriya Tonape7-Oct-05 22:32 
GeneralRe: Explain in brief this error... Pin
S. Senthil Kumar8-Oct-05 1:15
S. Senthil Kumar8-Oct-05 1:15 
GeneralRe: Explain in brief this error... Pin
Anonymous11-Oct-05 7:58
Anonymous11-Oct-05 7:58 
QuestionSystem Inactivity Pin
Ivan Cachicatari7-Oct-05 17:52
Ivan Cachicatari7-Oct-05 17:52 
AnswerRe: System Inactivity Pin
ThatsAlok7-Oct-05 19:38
ThatsAlok7-Oct-05 19:38 
GeneralRe: System Inactivity Pin
Ivan Cachicatari8-Oct-05 3:04
Ivan Cachicatari8-Oct-05 3:04 
Questiondb grid control? Pin
cell517-Oct-05 15:19
cell517-Oct-05 15:19 
Questionsimple program help Pin
Anonymous7-Oct-05 14:43
Anonymous7-Oct-05 14:43 
AnswerRe: simple program help Pin
ThatsAlok7-Oct-05 19:53
ThatsAlok7-Oct-05 19:53 
Answer[Message Deleted] Pin
v(A)ssili8-Oct-05 19:14
v(A)ssili8-Oct-05 19:14 
GeneralRe: simple program help Pin
Gary R. Wheeler9-Oct-05 2:59
Gary R. Wheeler9-Oct-05 2:59 
AnswerRe: simple program help Pin
John R. Shaw8-Oct-05 23:46
John R. Shaw8-Oct-05 23:46 
QuestionObject Help Pin
Anonymous7-Oct-05 14:07
Anonymous7-Oct-05 14:07 

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.