Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Michael Tharigen

@Michael Tharigen
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Application freeze
    M Michael Tharigen

    You should sometimes (e.g. after reading of 100 data) call a function like this. If you remove the message from the queue, you should dispatch the message. You can call PeekMessage with other filters too (e.g. for a special window or other messages). But the last call should not use any filters! void PeekMessages() { MSG msg; // check for paint-messages ... while ( PeekMessage(&msg, NULL, WM_PAINT, WM_PAINT, PM_REMOVE) ) { // ... and dispatch these TranslateMessage(&msg); DispatchMessage(&msg); } // only to prevent ghost-window on vista! // we dont use the result and let the message // in the queue (PM_NOREMOVE) PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE); }

    C / C++ / MFC help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups