本文整理汇总了C++中Control::GetHandle方法的典型用法代码示例。如果您正苦于以下问题:C++ Control::GetHandle方法的具体用法?C++ Control::GetHandle怎么用?C++ Control::GetHandle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Control
的用法示例。
在下文中一共展示了Control::GetHandle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DoAction
void ActionClientUpdata::DoAction(int &key)
{
Control *pUpdata;
Control *pNotic;
if (ClientForm::pTable1->pNode == NULL)
{
pNotic = new Notic(pWin->GetHandle(),5,30,9,17,(char *)"请先选定一条记录",5);
pNotic->show();
usleep(1000000);
wclear(pNotic->GetHandle());
wrefresh(pNotic->GetHandle());
delete pNotic;
return;
}
pUpdata = new ClientUserUpdata(19,61,2,4,1);
pUpdata->show();
pUpdata->KeyListen(key);
if (key == 1)
{
pNotic = new Notic(pUpdata->GetHandle(),5,26,8,18,(char *)"修改成功,请稍候",5);
pNotic->show();
usleep(1000000);
delete pNotic;
}
pWin->show();
ClientForm::pTable1->UpdataTable();
key = 10;
delete pUpdata;
}
示例2: Control
ListBox::ListBox(Control c, RECT r, LPCSTR t) {
Control();
//Create font and the button
hFont = CreateFont(-11, 0, 0, 0, 400, FALSE, FALSE, FALSE, 1, 400, 0, 0, 0, "Arial");
hWnd = CreateWindowEx(WS_EX_CLIENTEDGE, "ListBox", t, WS_TABSTOP | WS_VISIBLE | WS_CHILD | WS_VSCROLL,
r.left, r.top, r.right, r.bottom,
c.GetHandle(), 0, c.GetInstance(), NULL);
//Retrieve the rectangle
rect = r;
//Set the button font and make sure it's visible
SendMessage(hWnd, WM_SETFONT, (WPARAM)hFont, 0);
ShowWindow(hWnd, SW_SHOW);
}