C++ 谁应该是选项卡控件子对话框的父级?
根据一些人的说法,选项卡子对话框应该是实际主对话框窗口的子对话框,而不是选项卡控件本身。我认为有些人提出了相反的建议,即这个函数示例:C++ 谁应该是选项卡控件子对话框的父级?,c++,windows,winapi,dialog,tabcontrol,C++,Windows,Winapi,Dialog,Tabcontrol,根据一些人的说法,选项卡子对话框应该是实际主对话框窗口的子对话框,而不是选项卡控件本身。我认为有些人提出了相反的建议,即这个函数示例: // Creates a child window (a static control) to occupy the tab control's // display area. // Returns the handle to the static control. // hwndTab - handle of the tab control. /
// Creates a child window (a static control) to occupy the tab control's
// display area.
// Returns the handle to the static control.
// hwndTab - handle of the tab control.
//
HWND DoCreateDisplayWindow(HWND hwndTab)
{
HWND hwndStatic = CreateWindow(WC_STATIC, L"",
WS_CHILD | WS_VISIBLE | WS_BORDER,
100, 100, 100, 100, // Position and dimensions; example only.
hwndTab, NULL, g_hInst, // g_hInst is the global instance handle
NULL);
return hwndStatic;
}
那么对这一点有明确的看法吗?顺便说一下,我查了一下佩佐尔德,但没有找到关于这个主题的任何东西。谢谢你的帮助。。挑逗者:“您可能会尝试将选项卡控件的显示区域的内容创建为选项卡控件的子项,但这样做是错误的。”谢谢。是的,我想我忽略了雷蒙德的作品。那是我的错。