tenho seguinte código winui3 c++ tenho seguinte código winui3 c++ namespace…
- User
tenho seguinte código winui3 c++
tenho seguinte código winui3 c++
namespace winrt::DataIntegrityTools::implementation { struct MainWindow : MainWindowT { MainWindow() { int windowWidth = 1600; int windowHeight = 800;
ExtendsContentIntoTitleBar(true); SetTitleBar(AppTitleBar()); //window.Title(L"Data Integrity Tools"); auto appWindow = AppWindow(); //appWindow.SetIcon(L"Assets/app.ico"); appWindow.Resize({ windowWidth, windowHeight });
auto presenter = appWindow.Presenter().as(); presenter.IsResizable(false); presenter.IsMaximizable(false);
RECT workArea; SystemParametersInfo(SPI_GETWORKAREA, 0, &workArea, 0);
int screenWidth = workArea.right - workArea.left; int screenHeight = workArea.bottom - workArea.top;
int posX = workArea.left + (screenWidth - windowWidth) / 2; int posY = workArea.top + (screenHeight - windowHeight) / 2;
appWindow.Move({ posX, posY }); }
int32_t MyProperty(); void MyProperty(int32_t value); }; }
Como posso desativar o duplo click na titlebar ?
- Assistant