本文整理汇总了C++中HideWindow函数的典型用法代码示例。如果您正苦于以下问题:C++ HideWindow函数的具体用法?C++ HideWindow怎么用?C++ HideWindow使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了HideWindow函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
void AutoHideBar::OnHighlight()
{
DockableCtrl* hiddenwindow = NULL;
if(highlight >= 0)
hiddenwindow = tabs[highlight].dock;
if(!hiddenwindow || hiddenwindow == ctrl)
return;
else if(ctrl)
{
if(hiddenwindow)
{
if(popup.IsOpen())
popup.Close();
ctrl->Remove();
ctrl = NULL;
}
else HideWindow();
}
if(hiddenwindow)
{
TabInterface::SetActiveTab(highlight);
ShowWindow();
}
}
示例2: OnSpKeyDown
static void OnSpKeyDown(WPARAM wParam, LPARAM lParam)
{
switch(wParam){
case VK_TAB:
if(!IsWindowVisible(g_hWnd)){
OnListUpdate();
}
else{
if(!g_Shift){
g_WndList->MoveCursor(1);
}
else{
g_WndList->MoveCursor(-1);
}
InvalidateItem();
}
break;
case VK_ESCAPE:
case VK_KANJI:
HideWindow();
break;
case VK_UP:
g_WndList->MoveCursor(-1);
InvalidateItem();
break;
case VK_DOWN:
g_WndList->MoveCursor(1);
InvalidateItem();
break;
case VK_LSHIFT:
case VK_RSHIFT:
g_Shift = TRUE;
break;
}
}
示例3: HideWindow
CityEspionage::~CityEspionage()
{
HideWindow();
if (m_inventoryList)
{
m_inventoryList->ClearUserData CALL_TEMPLATE_FUNCTION_WITHOUT_ARGUMENT(InventoryItemInfo);
m_inventoryList->Clear();
}
for (size_t unitIndex = 0; unitIndex < k_MAX_ARMY_SIZE; ++unitIndex)
{
MBCHAR block [k_MAX_NAME_LEN];
sprintf(block, "DialogBackground.FortifiedUnitsBox.Unit%i", unitIndex);
ctp2_Static * unitPicture = static_cast<ctp2_Static *>
(aui_Ldl::GetObject(LDL_BLOCK, block));
if (unitPicture)
{
unitPicture->ExchangeImage(0, 0, NULL);
}
}
aui_Ldl::DeleteHierarchyFromRoot(LDL_BLOCK);
}
示例4: StartCarbonModalDialog
void StartCarbonModalDialog(void)
{
HiliteMenu(0);
DisableMenus();
if (gWindow)
HideWindow(gWindow);
}
示例5: SendEmoticon
LRESULT CDlgPopup::OnMsgTabItemHit( WPARAM wParam,LPARAM lParam )
{
SendEmoticon((LPCTSTR)wParam);
HideWindow();
return 0;
}
示例6: time
void PouringWindow::updateUI()
{
if (pouring == false)
{
double now = time(NULL);
if (closeWindowAt < now)
HideWindow();
return;
}
updateScanningText();
if (foundNewUser)
{
int userIndex = std::find(User::UsersList.begin(), User::UsersList.end(), currentUser) - User::UsersList.begin();
ui->usersComboBox->setCurrentIndex(userIndex);
foundNewUser = false;
}
liters = FlowMeterManager::Ticks / (double)ticksPerLiter;
ounces = liters * Constants::OuncesPerLiter;
price = FlowMeterManager::CurrentKeg->GetPrice(liters);
ui->volumePouredField->setText(QString("%1oz").arg(QString::number(ounces, 'f', 1)));
ui->priceField->setText(QString("$%1").arg(QString::number(price, 'f', 2)));
}
示例7: HideWindow
void PouringWindow::on_finishPourButton_clicked()
{
if (pouring)
FlowMeterManager::Instance->FinishPour();
else
HideWindow();
}
示例8: unloadPlayerWin
bool unloadPlayerWin()
{
ControlRef cRef;
ControlID cID;
OSStatus iErr;
cID.signature = FOUR_CHAR_CODE('volu');
cID.id = 6;
if (noErr != (iErr = GetControlByID(g_refPlayerWin, &cID, &cRef)))
{
/* We don't return false here since this is always called on the way out. */
fprintf(stderr, "unloadPlayerWin() - GetControlByID() failed, returning %lu!\n", (unsigned long) iErr);
}
else
{
SetControlAction(cRef, (ControlActionUPP) -1);
}
HideWindow(g_refPlayerWin);
RemoveEventHandler(g_refSeekHdlr);
RemoveEventHandler(g_refPlayerHdlr);
DisposeWindow(g_refPlayerWin);
DisposeEventHandlerUPP(g_lpfnPlayerProc);
DisposeControlActionUPP(g_lpfnVolumeProc);
return true;
}
示例9: unloadInfoWin
bool unloadInfoWin()
{
DataBrowserCallbacks dbc;
ControlRef cRef;
ControlID cID;
cID.signature = FOUR_CHAR_CODE('tags');
cID.id = 16;
if (noErr == GetControlByID(g_refInfoWin, &cID, &cRef))
{
dbc.version = kDataBrowserLatestCallbacks;
if (noErr == InitDataBrowserCallbacks(&dbc))
{
SetDataBrowserCallbacks(cRef, &dbc);
}
}
clearInfoWin();
HideWindow(g_refInfoWin);
RemoveEventHandler(g_refInfoHdlr);
DisposeWindow(g_refInfoWin);
DisposeEventHandlerUPP(g_lpfnInfoProc);
DisposeDataBrowserItemDataUPP(g_lpfnGSIDProc);
/* Clean up any previous contents */
return true;
}
示例10: HideWindow
void GBWindow::Hide() {
#if MAC
HideWindow(window);
#elif WINDOWS
ShowWindow(win, SW_HIDE);
#endif
visible = false;
}
示例11: HideWindow
void
GUI::ToggleWindow(uint16 id)
{
if (IsWindowShown(id))
HideWindow(id);
else
ShowWindow(id);
}
示例12: unloadAboutWin
bool unloadAboutWin()
{
HideWindow(g_refAboutWin);
RemoveEventHandler(g_refAboutHdlr);
DisposeWindow(g_refAboutWin);
DisposeEventHandlerUPP(g_lpfnAboutProc);
return true;
}
示例13: HideWindow
/*** DESTRUCTOR ***/
WindowObject::~WindowObject( void )
{
if( window )
{
HideWindow( window );
DisposeWindow( window );
}
}
示例14: HideWindow
void CXTPReportInplaceEdit::OnEnKillfocus()
{
if (pControl && pItem)
{
pItem->OnValidateEdit((XTP_REPORTRECORDITEM_ARGS*)this);
//pItem->OnCancelEdit(pControl, TRUE);
HideWindow();
}
}
示例15: HideWindow
void TermWindow::ReShowWindow() {
if(this->isVisible()) {
HideWindow(); //start with same animation as hide
animRunning = 3; //flag as a re-show (hide, then show);
} else {
//Already hidden, just show it
ShowWindow();
}
}