Thread: how do i do these things?

  1. #1
    Registered User
    Join Date
    Jan 2002

    how do i do these things?

    I'm using win32 api
    Could anyone tell me how you make progress bars that are like install shield. And my other question is how should i check if the mouse is over like a graphic so i can make to change color or something. Thanks if you can answer these.

  2. #2
    train spotter
    Join Date
    Aug 2001
    near a computer
    What exactly are 'progressbars like install shield'?

    Do you mean,

    A progress bar is a common contol that can be created with a call to CreateWindowEx() with 'PROGRESS_CLASS' as the class name param. Must InitCommonCtrls() first. The resource editor can also make them. MSVC v6 calls them a 'progress' .

    hwndPB = CreateWindowEx(0, PROGRESS_CLASS, blah, blah.....

    I have posted code before as to how to update, reset ect. Run a search to find.

    To determine if a mouse is over a control ect need to have SetCapture() for that dialog, window or control (to get the mouse msg's). Then a simple PtInRect() with the mouse point and client rectangle of the control will do it.

    Look for GetClientRect(), SetCapture(), PtInRect() and ReleaseCapture() . GetDlgItem() may help.

    WM_MOUSEMOVE, or one of the WM_LBUTTONDOWN ect is the msg to look for.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Suggestions for things to study
    By Mastadex in forum Windows Programming
    Replies: 5
    Last Post: 08-18-2008, 09:23 AM
  2. Plants that eat things
    By StinkyRyan in forum A Brief History of
    Replies: 5
    Last Post: 07-05-2004, 03:41 PM
  3. How are things looking
    By cyberCLoWn in forum C++ Programming
    Replies: 8
    Last Post: 01-15-2004, 02:53 PM
  4. Selecting things on the canvas
    By Barjor in forum Windows Programming
    Replies: 0
    Last Post: 08-30-2001, 02:10 PM
  5. Help with these three things...
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 08-26-2001, 07:05 AM