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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

Maksim Lepikhin

@Maksim Lepikhin
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • service status
    M Maksim Lepikhin

    I am not sure about your specific problem, but you may try using something like this to find your service: SC_HANDLE hM = OpenSCManager(NULL,NULL,SC_MANAGER_ENUMERATE_SERVICE); if (hM) { ENUM_SERVICE_STATUS stat[1024]; DWORD dwNeeded; DWORD dwRet; DWORD dwFirst = 0; if (EnumServicesStatus(hM,SERVICE_WIN32|SERVICE_DRIVER,SERVICE_STATE_ALL,stat,sizeof(stat),&dwNeeded,&dwRet,&dwFirst)) { for (DWORD n=0;n Or, if you are already in posession of the service handle, `BOOL QueryServiceStatus( SC_HANDLE hService, // handle to service LPSERVICE_STATUS lpServiceStatus // service status );` Enjoy! Maksim Lepikhin [www.softforpros.com](http://www.softforpros.com)

    C / C++ / MFC json

  • GetLastError problem
    M Maksim Lepikhin

    In your code hbrBackground member is not initialized. It should be either NULL or valid HBRUSH. Maksim Lepikhin www.softforpros.com

    C / C++ / MFC help database debugging tutorial

  • draw a combobox
    M Maksim Lepikhin

    I guess, the easiest way to do it is to process WM_PAINT, WM_MOUSEMOVE, WM_LBUTTONDOWN, and WM_LBUTTONUP in a CComboBox derived class. Mouse messages are needed to get button state (pressed/depressed). In WM_PAINT you are free to draw whatever button you like. The hardest part in the process outlined is to draw all the shadows correctly. Note that the button is not an actual child window, it's drawn in WM_PAINT processing. And, finally you will need to subclass your dialog item if combo-box is created via a dialog template. Enjoy! Maksim Lepikhin www.softforpros.com

    C / C++ / MFC question
  • Login

  • Don't have an account? Register

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