本文整理汇总了C++中HideWindow函数的典型用法代码示例。如果您正苦于以下问题:C++ HideWindow函数的具体用法?C++ HideWindow怎么用?C++ HideWindow使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了HideWindow函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
}
开发者ID:kolyden,项目名称:mirror,代码行数:25,代码来源:AutoHideBar.cpp
示例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;
}
}
开发者ID:tetu-dc5,项目名称:TTSwTask,代码行数:35,代码来源:TTSwTask.cpp
示例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);
}
开发者ID:talentlesshack,项目名称:C2P2,代码行数:25,代码来源:CityEspionage.cpp
示例4: StartCarbonModalDialog
void StartCarbonModalDialog(void)
{
HiliteMenu(0);
DisableMenus();
if (gWindow)
HideWindow(gWindow);
}
开发者ID:alesegdia,项目名称:snes-sdk,代码行数:7,代码来源:mac-dialog.cpp
示例5: SendEmoticon
LRESULT CDlgPopup::OnMsgTabItemHit( WPARAM wParam,LPARAM lParam )
{
SendEmoticon((LPCTSTR)wParam);
HideWindow();
return 0;
}
开发者ID:ShikyC,项目名称:WinEmoticons,代码行数:7,代码来源:DlgPopup.cpp
示例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)));
}
开发者ID:richparsonsx,项目名称:SmartKegerator,代码行数:26,代码来源:pouringwindow.cpp
示例7: HideWindow
void PouringWindow::on_finishPourButton_clicked()
{
if (pouring)
FlowMeterManager::Instance->FinishPour();
else
HideWindow();
}
开发者ID:richparsonsx,项目名称:SmartKegerator,代码行数:7,代码来源:pouringwindow.cpp
示例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;
}
开发者ID:ullerrm,项目名称:frogg,代码行数:27,代码来源:PlayerWin.cpp
示例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;
}
开发者ID:ullerrm,项目名称:frogg,代码行数:29,代码来源:InfoWin.cpp
示例10: HideWindow
void GBWindow::Hide() {
#if MAC
HideWindow(window);
#elif WINDOWS
ShowWindow(win, SW_HIDE);
#endif
visible = false;
}
开发者ID:AgentE382,项目名称:grobots,代码行数:8,代码来源:GBWindow.cpp
示例11: HideWindow
void
GUI::ToggleWindow(uint16 id)
{
if (IsWindowShown(id))
HideWindow(id);
else
ShowWindow(id);
}
开发者ID:jackburton79,项目名称:bgemu,代码行数:8,代码来源:GUI.cpp
示例12: unloadAboutWin
bool unloadAboutWin()
{
HideWindow(g_refAboutWin);
RemoveEventHandler(g_refAboutHdlr);
DisposeWindow(g_refAboutWin);
DisposeEventHandlerUPP(g_lpfnAboutProc);
return true;
}
开发者ID:ullerrm,项目名称:frogg,代码行数:8,代码来源:AboutWin.cpp
示例13: HideWindow
/*** DESTRUCTOR ***/
WindowObject::~WindowObject( void )
{
if( window )
{
HideWindow( window );
DisposeWindow( window );
}
}
开发者ID:cooljeanius,项目名称:ResKnife,代码行数:9,代码来源:WindowObject.cpp
示例14: HideWindow
void CXTPReportInplaceEdit::OnEnKillfocus()
{
if (pControl && pItem)
{
pItem->OnValidateEdit((XTP_REPORTRECORDITEM_ARGS*)this);
//pItem->OnCancelEdit(pControl, TRUE);
HideWindow();
}
}
开发者ID:killbug2004,项目名称:ghost2013,代码行数:9,代码来源:XTPReportInplaceControls.cpp
示例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();
}
}
开发者ID:abishai,项目名称:lumina,代码行数:9,代码来源:TermWindow.cpp
示例16: hideInfoWin
bool hideInfoWin()
{
if (!g_bLoaded) { return false; }
if (!g_bVisible) { return true; }
HideWindow(g_refInfoWin);
g_bVisible = false;
return true;
}
开发者ID:ullerrm,项目名称:frogg,代码行数:9,代码来源:InfoWin.cpp
示例17: HideWindow
void OSD::RemoveWindow(const QString &window)
{
if (!m_Children.contains(window))
return;
HideWindow(window);
MythScreenType *child = m_Children.value(window);
m_Children.remove(window);
delete child;
}
开发者ID:jshattoc,项目名称:mythtv,代码行数:10,代码来源:osd.cpp
示例18: NPServerDialog
bool8 NPServerDialog (void)
{
OSStatus err;
IBNibRef nibRef;
npserver.dialogcancel = true;
err = CreateNibReference(kMacS9XCFString, &nibRef);
if (err == noErr)
{
WindowRef tWindowRef;
err = CreateWindowFromNib(nibRef, CFSTR("ClientList"), &tWindowRef);
if (err == noErr)
{
EventHandlerRef eref;
EventLoopTimerRef tref;
EventHandlerUPP eventUPP;
EventLoopTimerUPP timerUPP;
EventTypeSpec windowEvents[] = { { kEventClassCommand, kEventCommandProcess },
{ kEventClassCommand, kEventCommandUpdateStatus } };
HIViewRef ctl;
HIViewID cid = { 'Chse', 0 };
npserver.dialogprocess = kNPSDialogInit;
eventUPP = NewEventHandlerUPP(NPServerDialogEventHandler);
err = InstallWindowEventHandler(tWindowRef, eventUPP, GetEventTypeCount(windowEvents), windowEvents, (void *) tWindowRef, &eref);
timerUPP = NewEventLoopTimerUPP(NPServerDialogTimerHandler);
err = InstallEventLoopTimer(GetCurrentEventLoop(), 0.0f, 0.1f, timerUPP, (void *) tWindowRef, &tref);
HIViewFindByID(HIViewGetRoot(tWindowRef), cid, &ctl);
HIViewSetVisible(ctl, false);
MoveWindowPosition(tWindowRef, kWindowServer, false);
ShowWindow(tWindowRef);
err = RunAppModalLoopForWindow(tWindowRef);
HideWindow(tWindowRef);
SaveWindowPosition(tWindowRef, kWindowServer);
err = RemoveEventLoopTimer(tref);
DisposeEventLoopTimerUPP(timerUPP);
err = RemoveEventHandler(eref);
DisposeEventHandlerUPP(eventUPP);
CFRelease(tWindowRef);
}
DisposeNibReference(nibRef);
}
return (!npserver.dialogcancel);
}
开发者ID:OV2,项目名称:snes9x-libsnes,代码行数:55,代码来源:mac-server.cpp
示例19: HideWindow
//-------------------------------------------------------------------------------------------------//
void OSXCarbonWindow::setHidden(bool hidden)
{
mHidden = hidden;
if (!mIsExternal)
{
if (hidden)
HideWindow(mWindow);
else
ShowWindow(mWindow);
}
}
开发者ID:JoeyZh,项目名称:ogre-android,代码行数:12,代码来源:OgreOSXCarbonWindow.cpp
示例20: infoEvtHandler
static OSStatus infoEvtHandler(EventHandlerCallRef nextHdlr, EventRef thisEvt, void *pvUserData)
{
if ( (kEventClassWindow != GetEventClass(thisEvt)) ||
(kEventWindowClose != GetEventKind(thisEvt)) )
{
return CallNextEventHandler(nextHdlr, thisEvt);
}
HideWindow(g_refInfoWin);
g_bVisible = false;
return noErr;
}
开发者ID:ullerrm,项目名称:frogg,代码行数:12,代码来源:InfoWin.cpp
注:本文中的HideWindow函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论