When I run my program in Dev using Run, my programs' window is maximized like it should be. But when I run the program by double clicking, it runs in a normal window.

Has anyone else experienced weird things like this?

Here is my window creation data:
Code:
hwnd = ::CreateWindowEx(
           0,                   /* Extended styles */
           "Form",         /* Classname */
           s.c_str(),       /* Title Text */
           WS_OVERLAPPEDWINDOW | WS_MAXIMIZE,
           0,//CW_USEDEFAULT,       
           0,//CW_USEDEFAULT, 
           1000,                 
           700,                 
           HWND_DESKTOP,        /* The window is a child-window to desktop */
           NULL,                /* menu */
           This,       /* Program Instance handler */
           this    /* Window Creation data */
           );