How to create a Windows-style textbox in a C++ Win32 application

后端 未结 3 1378
离开以前
离开以前 2020-12-06 18:06

I tried this:

#include 

#pragma comment(linker,\"/manifestdependency:\\\"type=\'win32\' name=\'Microsoft.Windows.Common-Controls\' version=         


        
3条回答
  •  一生所求
    2020-12-06 18:49

    Instead of using CreateWindow, use CreateWindowEx and specify WS_EX_CLIENTEDGE as the first parameter.

    You can compare the styles of your created edit control with a stock one (for example, when you show 'Properties' on a file in the explorer) with the Spy++ tool that comes along Visual Studio.

提交回复
热议问题