在下面的代码(x64)中,尽管使用了Fixed3D样式,但表单视觉样式不是3D。显示结果窗口。 我还使用编译器指令强制使用ComCtl32.dll版本6, 但没有运气。
为什么我没有获得Visual Style 3D的任何想法?
#pragma comment(linker,"\"/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#include <windows.h>
#using <System.dll>
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
using namespace System;
using namespace System::Drawing;
using namespace System::Windows::Forms;
public ref class Form1: public Form
{
public:
Form1()
{
InitializeComponent();
}
void InitializeComponent()
{
Text = L"Form1";
//Icon = gcnew System::Drawing::Icon(L"C:\\Form1.ico");
StartPosition = FormStartPosition::WindowsDefaultLocation;
ControlBox = true;
MinimizeBox = true;
MaximizeBox = false;
Size = System::Drawing::Size(425, 308);
FormBorderStyle = System::Windows::Forms::FormBorderStyle::Fixed3D;
}
};
int main(void)
{
Application::Run(gcnew Form1());
return 0;
}