使用CreateWindowEx()创建窗口的一些参数设置问题

// create the window
if (!(hwnd = CreateWindowEx(NULL,                   // extended style
                            WINDOW_CLASS_NAME,      // class
          "DirectDraw Full-Screen Demo",               // title
          WS_POPUP | WS_VISIBLE,
           0,0,                                                            // initial x,y
          SCREEN_WIDTH,SCREEN_HEIGHT,     // initial width, height
          NULL,                                                       // handle to parent 
          NULL,                                                      // handle to menu
          hinstance,                                               / / instance of this application
          NULL)))                                                   // extra creation parms
return(0);

 

这里使用了WS_POPUP而不是WS_OVERLAPPEDWINDOW窗口风格。

WS_POPUP说明创建没有标题栏、没有边框的窗口

你可能感兴趣的:(null,application,Class,menu)