Thread: WinMain() just after message loop...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Hmm... I'll give that a thought. Actually, I don't use InvalidateRect(), or UpdateWindow() either for that matter... I used to use RedrawWindow(), but not right now. I'm just using GetDC() to get the HDC for the screen, and storing it in the BUFFER struct. Then I SelectObject() a bitmap into dcBitmap (in the BUFFER), BitBlt() that into dcBack as well as whatever else, then BitBlt() dcBack into dcFront (the screen). Should I be doing something differently?

    oh yeah... I don't know about the ship's position not changing, because when you press W, A, S, or D, it sets different bools to true, and when you release them, it sets them to false. Then ship.move() checks if they are true, and if they are, then it changes the ship's position.

    And I don't see how Sleep() posting a message would help, because if it posts a message, wouldn't it skip the else?... besides, I'm not using any timers.
    Last edited by Hunter2; 05-31-2002 at 04:59 PM.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. syntax question
    By cyph1e in forum C Programming
    Replies: 19
    Last Post: 03-31-2006, 12:59 AM
  2. Scope And Parameter Passing
    By djwicks in forum C Programming
    Replies: 6
    Last Post: 03-28-2005, 08:26 PM
  3. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 04:10 AM
  4. Help, the window gets killed......
    By incognito in forum Game Programming
    Replies: 2
    Last Post: 05-28-2002, 02:22 PM