how do i do these things?

This is a discussion on how do i do these things? within the Windows Programming forums, part of the Platform Specific Boards category; I'm using win32 api Could anyone tell me how you make progress bars that are like install shield. And my ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    69

    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
    Location
    near a computer
    Posts
    3,859
    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 Cprogramming.com
    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, 01: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21