Menu

CommonControls

2002-09-17
2012-09-26
  • Nobody/Anonymous

    Hi,

    how can I use the InitCommonControlsEx function. It needs the INITCOMMONTROLSEX struct, but the compiler says he doesn't know, what the hell this thing is.

    Any Idea?

     
    • Nobody/Anonymous

      Try using InitCommonControls(). This is what I always use. btw, you will need to link with some commcontrls lib.

      Kip

       
    • Nobody/Anonymous

      INITCOMMONCONTROLSEX iccx;
      iccx.dwSize=sizeof(INITCOMMONCONTROLSEX);
      iccx.dwICC=ICC_UPDOWN_CLASS;
      InitCommonControlsEx(&iccx);

      This should set up a spinner.
      INITCOMMONCONTROLSEX is in commctrl.h, at least in MinGW 2.0.

      I don't use this function myself, plain old InitCommonControls suits me fine.

      rpeter

       
    • Nobody/Anonymous

      Yes, but in order to use INITCOMMONCONTROLSEX you have to define

      #define _WIN32_IE 0x0300

      or higher to use the function.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.