这篇教程C++ GetApplication函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetApplication函数的典型用法代码示例。如果您正苦于以下问题:C++ GetApplication函数的具体用法?C++ GetApplication怎么用?C++ GetApplication使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetApplication函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: BackupObject// create a new paint brushvoid TOleDocWindow::CMPBrush( RTMessage ){ BackupObject(); bObjectLoaded = FALSE; lstrcpy( lpszObjectName, GetNextObjectName() ); ret = OleCreate( "StdFileEditing", (LPOLECLIENT)pOwlClient, "PBRUSH", lhClientDoc, GetApplication()->Name, &lpObject, olerender_draw, 0 ); // Creating an Ole Object is a asynchronous operation. An // interesting experiment is to use TDW to step into // WaitOleNotBusy (which the following wait macro takes you // to) and look at the user screen between message // dispatching. You should see pbrush gradually paint // itself as it processes the messages which which Ole // generates for it. In general, if a Ole Server does not // behave properly when creating an object, a likely cause is a // problem with the message dispatch loop. wait( ret , lpObject ); // OleSetHostNames sets the name in the server app. If this // was not called, pbrush would display a string with a bunch // of % sings in it. ret = OleSetHostNames( lpObject, GetApplication()->Name, lpszObjectName ); wait( ret , lpObject );}
开发者ID:nicolaemariuta,项目名称:bachelorHomeworkAndStudy,代码行数:36,
示例2: GetApplication void GuiControl::CloseTooltip() { if(GetApplication()->GetTooltipOwner()==this) { GetApplication()->CloseTooltip(); } }
开发者ID:Crawping,项目名称:GacUI,代码行数:7,
示例3: GetApplicationBOOL ColourDragInformation::Init(){ // Setup preference for drag transparency if (GetApplication()->DeclareSection(_T("Dragging"), 1)) GetApplication()->DeclarePref( NULL, _T("ColourDragTransparency"), &DragTransparency, 0, 100); return TRUE;}
开发者ID:UIKit0,项目名称:xara-xtreme,代码行数:8,
示例4: GetApplicationBOOL ClickModifiers::DeclarePrefs(){ GetApplication()->DeclareSection( wxT("Mouse"), 5); GetApplication()->DeclarePref( wxT("Mouse"), wxT("Left Button"), (INT32*)&LeftButtonFunction); GetApplication()->DeclarePref( wxT("Mouse"), wxT("Middle Button"), (INT32*)&MiddleButtonFunction); GetApplication()->DeclarePref( wxT("Mouse"), wxT("Right Button"), (INT32*)&RightButtonFunction); return TRUE;}
开发者ID:Amadiro,项目名称:xara-cairo,代码行数:9,
示例5: run_chainvoid run_chain(int nChainNumber) { int inst = inst_ok(INST_LOC_CHAINS, nChainNumber + 1); if (inst != 0) { char szMessage[255]; sprintf(szMessage, "|#2Chain %s is in use on instance %d", chains[nChainNumber].description, inst); if (!(chains[nChainNumber].ansir & ansir_multi_user)) { strcat(szMessage, "Try again later./r/n"); GetSession()->bout << szMessage; return; } else { strcat(szMessage, "Care to join in? "); GetSession()->bout << szMessage; if (!yesno()) { return; } } } write_inst(INST_LOC_CHAINS, static_cast< unsigned short >(nChainNumber + 1), INST_FLAGS_NONE); if (GetApplication()->HasConfigFlag(OP_FLAGS_CHAIN_REG) && chains_reg) { chains_reg[nChainNumber].usage++; WFile regFile(syscfg.datadir, CHAINS_REG); if (regFile.Open(WFile::modeReadWrite | WFile::modeBinary | WFile::modeCreateFile | WFile::modeTruncate, WFile::shareUnknown, WFile::permReadWrite)) { regFile.Write(chains_reg, GetSession()->GetNumberOfChains() * sizeof(chainregrec)); } } char szComSpeed[ 11 ]; sprintf(szComSpeed, "%d", (com_speed == 1) ? 115200 : com_speed); char szComPortNum[ 11 ]; sprintf(szComPortNum, "%d", syscfgovr.primaryport); char szModemSpeed[ 11 ]; sprintf(szModemSpeed, "%d", modem_speed); const std::string chainCmdLine = stuff_in(chains[nChainNumber].filename, create_chain_file(), szComSpeed, szComPortNum, szModemSpeed, ""); sysoplogf("!Ran /"%s/"", chains[nChainNumber].description); GetSession()->GetCurrentUser()->SetNumChainsRun(GetSession()->GetCurrentUser()->GetNumChainsRun() + 1); unsigned short flags = 0; if (!(chains[nChainNumber].ansir & ansir_no_DOS)) { flags |= EFLAG_COMIO; } if (chains[nChainNumber].ansir & ansir_no_pause) { flags |= EFLAG_NOPAUSE; } if (chains[nChainNumber].ansir & ansir_emulate_fossil) { flags |= EFLAG_FOSSIL; } ExecuteExternalProgram(chainCmdLine, flags); write_inst(INST_LOC_CHAINS, 0, INST_FLAGS_NONE); GetApplication()->UpdateTopScreen();}
开发者ID:bhaggerty,项目名称:wwiv,代码行数:56,
示例6: CPhidgetInterfaceKit_setRatiometricvoid WidgetsInterfaceKit::OnWtRatiometricStateChanged(Wt::WCheckBox* checkbox){ bool ratiometric = checkbox->isChecked(); CPhidgetInterfaceKit_setRatiometric(m_phidget->GetNativeHandle(), ratiometric ? PTRUE : PFALSE); ::GetApplicationManager()->OnWtRatiometricChanged(GetApplication(), GetSerial(), ratiometric); UpdateSensorFunctionDropdowns(ratiometric); GetApplication()->triggerUpdate();}
开发者ID:frodegill,项目名称:WtPhidgetManager,代码行数:10,
示例7: GetApplicationvoid RTSPProtocol::GetStats(Variant &info, uint32_t namespaceId) { BaseProtocol::GetStats(info, namespaceId); info["streams"].IsArray(true); Variant si; if (GetApplication() != NULL) { StreamsManager *pStreamsManager = GetApplication()->GetStreamsManager(); map<uint32_t, BaseStream*> streams = pStreamsManager->FindByProtocolId(GetId()); FOR_MAP(streams, uint32_t, BaseStream *, i) { si.Reset(); MAP_VAL(i)->GetStats(si, namespaceId); info["streams"].PushToArray(si); }
开发者ID:OpenQCam,项目名称:qcam,代码行数:13,
示例8: GetApplicationvoid SelectionState::DeselectAll(BOOL RenderBlobs){ // Find the selected objects in the tree; SelRange* Selected = GetApplication()->FindSelection(); ERROR3IF( Selected==NULL, "Selection object is null in DeselectAll()"); // Get the selected spread Spread* pSpread = Document::GetSelectedSpread(); ERROR3IF(pSpread == NULL,"NULL selected spread"); // Make sure that we have a spread and a selection if (pSpread == NULL || Selected == NULL) return; // Find first selected node#if !defined(EXCLUDE_FROM_RALPH) Node* pFirstSelectedNode = Selected->FindFirst(); // If there is a selection, EOR blobs off, deselect nodes, and inform everybody if (pFirstSelectedNode != NULL && RenderBlobs) { // Go though and render all the EOR blobs off the screen // Find the Blob Manager BlobManager* BlobMgr = GetApplication()->GetBlobManager(); ENSURE( BlobMgr!=NULL, "Blob Manager unexpectedly not there."); // Render all the blobs BlobMgr->RenderOff(NULL, pFirstSelectedNode->FindParentSpread()); Tool* pTool = Tool::GetCurrent(); // Get the tool to remove all its blobs before we deselect the nodes. // Only do this if the current tool dosent update itself on sel changed messages if (pSpread!=NULL && pTool!=NULL && !pTool->AreToolBlobsRenderedOnSelection()) pTool->RenderToolBlobs(pSpread,NULL); }#endif DeselectAll(pSpread->FindFirstChild()); // Selection cache is no longer valid, so update and tell everyone that it has changed // *Note*, This used to be 'Selected->Update(TRUE)', but I (Will) removed the TRUE, so // that a message is NOT broadcast. This should only be called from an operation, // and the op will send a message when it ends. Selected->Update();}
开发者ID:vata,项目名称:xarino,代码行数:49,
示例9: TBaseDemoWindow/* Initialize the bitblt demo window and allocate bitmaps */TBitBltWindow::TBitBltWindow( PTWindowsObject AParent, LPSTR ATitle ) : TBaseDemoWindow( AParent, ATitle ){ Background = LoadBitmap(GetApplication()->hInstance, MAKEINTRESOURCE(BackgroundID)); Ship = LoadBitmap(GetApplication()->hInstance, MAKEINTRESOURCE(ShipID)); MonoShip = LoadBitmap(GetApplication()->hInstance, MAKEINTRESOURCE(MonoShipID)); ScratchBitmap = 0; StretchedBkgnd = 0; OldX = 0; OldY = 0; X = 0; Y = 0; Delta = 5; CurClick = 1;};
开发者ID:WiLLStenico,项目名称:TestesEOutrasBrincadeiras,代码行数:16,
示例10: GetApplicationvoid LiveEffectsTool::OnMouseMove(DocCoord Coord, Spread* pSpread, ClickModifiers mods){// Stub out this function if the tool isn't wanted#ifndef NO_ADVANCED_TOOLS // We are interested in any selected paths that the cursor is over // we will also be needing the current docview SelRange* Selected = GetApplication()->FindSelection(); Node* pNode = Selected->FindFirst(); // Check to see if the selection is on the same spread as the mouse if (pNode!=NULL) { // Get the spread and return if it is different from the one with the cursor Spread* pNodeSpread = pNode->FindParentSpread(); if (pNodeSpread!=pSpread) return; } // Find the Blob manager, so we can find out how big a rect to use BlobManager* pBlobMgr = GetApplication()->GetBlobManager(); if (pBlobMgr==NULL) return; // Find the Rect round the mouse pos that counts as a hit DocRect BlobRect; pBlobMgr->GetBlobRect(Coord, &BlobRect); // Work out the square of the distance that we will count as 'close' to the line INT32 Range = BlobRect.Width() / 2; Range *= Range;// // loop through the selection// while (pNode!=NULL)// {// // Now find the next selected node// pNode = Selected->FindNext(pNode);// } // We did not find anything good, so set the cursor to the normal one ChangeCursor(pNormalCursor); // And set the status bar text StatusMsg.Load(_R(IDS_LIVEEFFECTSTART), Tool::GetModuleID(GetID())); GetApplication()->UpdateStatusBarText(&StatusMsg);#endif // NO_ADVANCED_TOOLS}
开发者ID:vata,项目名称:xarino,代码行数:48,
示例11: Karim_MacDonald/********************************************************************************************> static OpState OpRemoveClipView::GetState(String_256* pstrDescription, OpDescriptor* pOpDesc) Author: Karim_MacDonald (Xara Group Ltd) <[email C++ GetArea函数代码示例 C++ GetAppPath函数代码示例
|