title: c++ progress bar marquee style not working
body: <p>i tried to make the progress bar in c++ and it successfully worked with setting the position but when i tried to make it marquee i always get errors</p>
  
  <pre><code>#include &lt;windows.h&gt;
  #include &lt;commctrl.h&gt;
  #include &lt;tchar.h&gt;
  
  LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
  
  HWND hWndButton;
  HWND hEdit;
  HWND hProgress;
  
  char finalName[25];
  char name[10];
  
  int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmd, int nCmdShow){
  
      HWND hwnd;               /* This is the handle for our window */
      MSG messages;            /* Here messages to the application are saved */
      WNDCLASS wincl;        /* Data structure for the windowclass */
  
      ZeroMemory(&amp;wincl, sizeof(WNDCLASS));
  
      /* The Window structure */
      wincl.hInstance = hInst;
      wincl.lpszClassName = "Window Class";
      wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
      wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;
  
      /* Register the window class, and if it fails quit the program */
      if (!RegisterClass (&amp;wincl))
          return 0;
  
      /* The class is registered, let's create the program*/
      hwnd = CreateWindow (
             "Window Class",         /* Classname */
             ("Code::Blocks Template Windows App"),       /* Title Text */
             WS_OVERLAPPEDWINDOW, /* default window */
             433,                 /* Windows decides the position */
             134,                 /* where the window ends up on the screen */
             500,                 /* The programs width */
             500,                 /* and height in pixels */
             HWND_DESKTOP,        /* The window is a child-window to desktop */
             NULL,                /* No menu */
             hInst,       /* Program Instance handler */
             NULL                 /* No Window Creation data */
             );
  
      /* Make the window visible on the screen */
      ShowWindow (hwnd, nCmdShow);
  
      /* Run the message loop. It will run until GetMessage() returns 0 */
      while (GetMessage (&amp;messages, NULL, 0, 0))
      {
          /* Translate virtual-key messages into character messages */
          TranslateMessage(&amp;messages);
          /* Send message to WindowProcedure */
          DispatchMessage(&amp;messages);
          UpdateWindow(hwnd);
      }
      return 1;
  }
  
  
  /*  This function is called by the Windows function DispatchMessage()  */
  
  LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
  {
      switch (message)                  /* handle the messages */
      {
          case WM_DESTROY:
              PostQuitMessage (wParam);       /* send a WM_QUIT to the message queue */
              exit(1);
              break;
          case WM_CREATE:
              UpdateWindow(hwnd);
              hWndButton = CreateWindow("BUTTON", "Press Me!", WS_TABSTOP|WS_VISIBLE|WS_CHILD|BS_DEFPUSHBUTTON, 0, 25, 100, 25, hwnd, (HMENU)1, NULL, NULL);
              hEdit = CreateWindow("EDIT", "Write your name!", WS_CHILD|WS_VISIBLE|ES_MULTILINE|ES_AUTOVSCROLL|ES_AUTOHSCROLL, 0, 0, 200, 25, hwnd, (HMENU)2, NULL, NULL);
              hProgress = CreateWindow(PROGRESS_CLASS, NULL, WS_CHILD|WS_VISIBLE|PBS_MARQUEE, 0, 100, 500, 20, hwnd, (HMENU)3, NULL, NULL);
              SendMessage(hProgress, PBM_SETMARQUEE, 1, 1000);
              UpdateWindow(hwnd);
              break;
          case WM_COMMAND:
              if(wParam == 1){
                  GetWindowText(hEdit, _T(name), 10);
                  strcpy(finalName, "Hello, ");
                  strcat(finalName, name);
                  MessageBox(hwnd, (LPCSTR)finalName, "Your Name", MB_OK|MB_ICONINFORMATION);
              }
              break;
          default:                      /* for messages that we don't deal with */
              return DefWindowProc (hwnd, message, wParam, lParam);
      }
  
  }
  </code></pre>
  
  <p>saying that PBS_MARQUEE and PBM_SETMARQUEE were not defined in that scope though i included the commctrl.h header file, what is the problem??</p>