如何将对话框的大小更改为512 x 424像素?我知道MapDialogRect()从Dialog单位转换为像素,但没有API反向执行吗?如何将对话框的大小修改为我想要的像素?由于我是编程的初学者,任何代码都会有所帮助。谢谢。
这是Kinect 2 SDK Depth Basics的资源,
IDD_APP DIALOGEX 0, 0, 512, 436
STYLE DS_SETFONT | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_CLIPCHILDREN | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT | WS_EX_APPWINDOW
CAPTION "Sample"
CLASS "DepthBasicsAppDlgWndClass"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_VIDEOVIEW,"Static",SS_BLACKFRAME,0,0,512,424
LTEXT "",IDC_STATUS,0,425,412,11,SS_SUNKEN,0
DEFPUSHBUTTON "Screenshot",IDC_BUTTON_SCREENSHOT,422,424,90,12
END