Results 1 to 4 of 4

Thread: Toolbar in Dialog

  1. #1

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Toolbar in Dialog

    Hi,
    I am newbie in VC++. CAn anyone tell me how to use toolbar in a dialog box?

    Kinjal

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Huh? Newbie in C++? Toolbar in Dialogbox?
    Are you really a newbie to C++, then please learn the language first. If you are just a newbie to windows, then say so.

    If you are a newbie to windows, this should help you: a toolbar is a common control - search MSDN for common controls. You can use the WM_DLGINIT (or something) message in your DialogProc to create the toolbar and add buttons. Or to load it from a resource.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535
    Hi CornedBee
    I think you have made a mistake while reading my post. You better have your eyesight checked.
    I am newbie in "Microsoft Visual C++ 6.0" and have lot of experience programming C++, C and also Microsoft Visual Basic 6.0 . So it is not that I don't know "Windawz" programming at all. The fact is I don't know how to do it in VC++.

    Now I think you are clear.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Ok, if you are neither a newbie to C++ neither to windows API you should know how it works
    No seriously, just do like I said in my previous post. CreateToolbarEx is the function you need. Look it up in MSDN. To learn how to load a toolbar from a resource, see CToolBar::LoadToolBar in the MFC source code. Even if you don't use MFC, you should be able to find out how to get the info out of the resource. If not, I can help you.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width