当前位置: 首页>>代码示例>>C++>>正文


C++ SetWindowSize函数代码示例

本文整理汇总了C++中SetWindowSize函数的典型用法代码示例。如果您正苦于以下问题:C++ SetWindowSize函数的具体用法?C++ SetWindowSize怎么用?C++ SetWindowSize使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了SetWindowSize函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: SetWindowSize

void Platform_Win32_Screen::SetFullscreen(bool fullscreen)
	{
	if (fullscreen_==fullscreen)
		{
		return;
		}

	fullscreen_=fullscreen;

	if (technologyInstance_)
		{
		disableOnWmSize_++;

		delete technologyInstance_;
		technologyInstance_=0;

		if (!GetFullscreen())
			{
			SetWindowSize();
			}

		SetTechnology(technology_);

		if (technology_==Technology_DDraw && !GetFullscreen())
			{
			SetWindowSize();
			}

		disableOnWmSize_--;
		}
	}
开发者ID:RichardMarks,项目名称:Pixie,代码行数:31,代码来源:Platform_Win32_Screen.cpp

示例2: param_integer

void ScheddStatistics::Reconfig()
{
    int quantum = param_integer("STATISTICS_WINDOW_QUANTUM_SCHEDULER", INT_MAX, 1, INT_MAX);
    if (quantum >= INT_MAX)
        quantum = param_integer("STATISTICS_WINDOW_QUANTUM_SCHEDD", INT_MAX, 1, INT_MAX);
    if (quantum >= INT_MAX)
        quantum = param_integer("STATISTICS_WINDOW_QUANTUM", 4*60, 1, INT_MAX);
    this->RecentWindowQuantum = quantum;

    this->RecentWindowMax = param_integer("STATISTICS_WINDOW_SECONDS", 1200, quantum, INT_MAX);



    this->PublishFlags    = IF_BASICPUB | IF_RECENTPUB;
    char * tmp = param("STATISTICS_TO_PUBLISH");
    if (tmp) {
       this->PublishFlags = generic_stats_ParseConfigString(tmp, "SCHEDD", "SCHEDULER", this->PublishFlags);
       free(tmp);
    }
    SetWindowSize(this->RecentWindowMax);

    //stats_histogram_sizes::init_sizes_from_param("MAX_HIST_SIZES_LEVELS");
    //JobSizes.reconfig();
    //JobSizesGoodput.reconfig();
    //JobSizesBadput.reconfig();
}
开发者ID:AmesianX,项目名称:htcondor,代码行数:26,代码来源:schedd_stats.cpp

示例3: SetWindowSize

void cWindow::WindowDecrease() {

	// If we're in full screen mode remove it
	if (!mWindowMode) {

		mWindowMode = true;
		SetWindowSize(mWindow_Multiplier);

		return;
	}

	if (!CanChangeToMultiplier(mWindow_Multiplier - 1))
		return;

	SetWindowSize(mWindow_Multiplier - 1);
}
开发者ID:maniacs-games,项目名称:DrCreep,代码行数:16,代码来源:window.cpp

示例4: SetupEnvironment

void SetupEnvironment(TSession *Session)
{
char *Token=NULL, *ptr, *dptr;

setenv("LD_LIBRARY_PATH","/usr/local/lib:/usr/lib:/lib",1);
setenv("HOME",Session->HomeDir,TRUE);
if (StrLen(Settings.TermType)) setenv("TERM",Settings.TermType,TRUE);

SetWindowSize(0);

ptr=GetToken(Settings.Environment,",",&Token,GETTOKEN_QUOTES);
while (ptr)
{
	dptr=strchr(Token,'=');
	if (dptr)
	{
		*dptr='\0';
		dptr++;
	}
	else dptr="";
	setenv(Token, dptr, TRUE);
	ptr=GetToken(ptr,",",&Token,GETTOKEN_QUOTES);
}

DestroyString(Token);
}
开发者ID:wedaa,项目名称:LongTail-Telnet-honeypot-v2,代码行数:26,代码来源:main.c

示例5: param_integer

void DaemonCore::Stats::Reconfig()
{
    int window = param_integer("DCSTATISTICS_WINDOW_SECONDS", -1, -1, INT_MAX);
    if (window < 0)
       window = param_integer("STATISTICS_WINDOW_SECONDS", 1200, 1, INT_MAX);

    int quantum = configured_statistics_window_quantum();
    this->RecentWindowQuantum = quantum;
    this->RecentWindowMax = (window + quantum - 1) / quantum * quantum;

    this->PublishFlags    = 0 | IF_RECENTPUB;
    char * tmp = param("STATISTICS_TO_PUBLISH");
    if (tmp) {
       this->PublishFlags = generic_stats_ParseConfigString(tmp, "DC", "DAEMONCORE", this->PublishFlags);
       free(tmp);
    }
    SetWindowSize(this->RecentWindowMax);

    std::string strWhitelist;
    if (param(strWhitelist, "STATISTICS_TO_PUBLISH_LIST")) {
       this->Pool.SetVerbosities(strWhitelist.c_str(), this->PublishFlags, true);
    }

    std::string timespans;
    param(timespans,"DCSTATISTICS_TIMESPANS");

    std::string timespans_err;
    if( !ParseEMAHorizonConfiguration(timespans.c_str(),ema_config,timespans_err) ) {
        EXCEPT("Error in DCSTATISTICS_TIMESPANS=%s: %s",timespans.c_str(),timespans_err.c_str());
    }

    this->Commands.ConfigureEMAHorizons(ema_config);
}
开发者ID:AlainRoy,项目名称:htcondor,代码行数:33,代码来源:self_monitor.cpp

示例6: SetXDropoff

void
CBlastNucleotideOptionsHandle::SetInitialWordOptionsDefaults()
{
    SetXDropoff(BLAST_UNGAPPED_X_DROPOFF_NUCL);
    SetWindowSize(BLAST_WINDOW_SIZE_NUCL);
    SetOffDiagonalRange(BLAST_SCAN_RANGE_NUCL);
}
开发者ID:jackgopack4,项目名称:pico-blast,代码行数:7,代码来源:blast_nucl_options.cpp

示例7: AfxRegisterWndClass

BOOL COptionTreeImagePopUp::Create(CPoint pPoint)
{
	// Declare variables
	CString strClassName;

    // Get the class name and create the window
    strClassName = AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW, 0, (HBRUSH) (COLOR_BTNFACE+1), 0);

	// Create window
    if (!CWnd::CreateEx(0, strClassName, _T(""), WS_POPUP | WS_VISIBLE, pPoint.x, pPoint.y, 100, 100, m_pParent->GetSafeHwnd(), 0, NULL))
	{
        return FALSE;
	}

	// Show window
	ShowWindow(SW_SHOWNA);

    // Set the window size
    SetWindowSize();
	
	// Setup images
	SetUpImages();

	// Setup tooltips
	SetUpToolTips();

    // Capture all mouse events for the life of this window
    SetCapture();

	return TRUE;
}
开发者ID:ngphloc,项目名称:agmagic,代码行数:31,代码来源:optiontreeimagepopup.cpp

示例8: main

/*
 * Function: main
 * -----------------
 * Serves as entry point of program. Takes in all user inputs to determine specific boggle configuration.
 * Then, it gives the user a chance to find words in the boggleBoard. Then, the computer takes over
 * to find any remaining words. Finally, gives user option to play another round.
 *
 *@return 0 if program completed successfully.
 */
int main()
{
	Randomize(); //initializes random constructor
	SetWindowSize(8, 5);
	InitGraphics();
	Welcome();
	GiveInstructions();
	Lexicon wordList("lexicon.dat"); //generates list of all possible words
	while (true) {
		Lexicon usedWords; //generates a list that stores all words found by the player and computer
		InitGraphics();
		SoundFeature();
		int boardDimension = BoggleBoardSize();
		DrawBoard(boardDimension, boardDimension);
		Grid<char> boggleBoard(boardDimension, boardDimension);
		if (!UserBoardConfiguration()) {
			InitializeRandomBoard(boggleBoard); //if user chooses not to specify board configuration, a random one is generated
		} else {
			string diceConfig = GetDiceConfiguration(boardDimension);
			SetDiceConfiguration(boggleBoard, diceConfig);
		}
		DrawBoggleBoard(boggleBoard);
		Grid<bool> usedDice(boggleBoard.numRows(), boggleBoard.numCols());
		CreateMarker(usedDice);
		InputGuesses(boggleBoard, wordList, usedWords, usedDice); //player's turn
		FindRemainingWords(boggleBoard, wordList, usedWords, usedDice); //computer's turn
		PlayNamedSound("thats pathetic.wav"); //assumes the player will always lose to the computer
		if (!GameContinue()) break;
	}
	return 0;
}
开发者ID:ruiping82,项目名称:Stanford,代码行数:40,代码来源:boggle.cpp

示例9: SetWindowSize

CVisBlendedSequence<TPixel>::CVisBlendedSequence( int WindowSize )
    : CVisSequence<TPixel>(0, evissequenceLimitMemoryUsage|
                              evissequenceDelayReadUntilNeeded)
{
    SetWindowSize(WindowSize);
    m_pBlendRow = NULL;
    Reset();
}
开发者ID:bigdig,项目名称:Portrait,代码行数:8,代码来源:VisBlendedSequence.cpp

示例10: SetWindowSize

int CColourPicker::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
    if (CButton::OnCreate(lpCreateStruct) == -1)
        return -1;
    
    SetWindowSize();    // resize appropriately
    return 0;
}
开发者ID:Jichao,项目名称:comtut,代码行数:8,代码来源:ColourPicker.cpp

示例11: SetWindowSize

void WindowAttributesPickle::SaveAttributes()
{
    SetWindowSize(m_name, m_window->GetSize());
    SetWindowPos(m_name, m_window->GetPosition());
#ifndef __WXMAC__
    GetWindowMaximized(m_name, m_window->IsMaximized());
#endif
}
开发者ID:jpcordovae,项目名称:springlobby,代码行数:8,代码来源:windowattributespickle.cpp

示例12: main

int main()
{
	SetWindowSize(9, 5);
	InitGraphics();
	Welcome();
	GiveInstructions();
	return 0;
}
开发者ID:nejyeah,项目名称:cplusplus,代码行数:8,代码来源:boggle.cpp

示例13: ResizeToolbar

int ResizeToolbar(HWND hwndTB)
{
	RECT rect;
	SendMessage(hwndTB, TB_AUTOSIZE, 0, 0);
	GetToolbarRect(hwndTB, &rect);
	SetWindowSize(hwndTB, rect.right-rect.left, rect.bottom-rect.top, NULL);

	return rect.bottom-rect.top;
}
开发者ID:HTshandou,项目名称:HexEdit,代码行数:9,代码来源:Searchbar.c

示例14: SetFullScreen

void cWindow::SetOriginalRes( const cDimension& pDimension ) {

	mOriginalResolution = pDimension;
	
	if (!mWindowMode) {
		SetFullScreen();
		SetFullScreen();
	} else
		SetWindowSize( mWindow_Multiplier );
}
开发者ID:carriercomm,项目名称:openfodder,代码行数:10,代码来源:Window.cpp

示例15: SDL_GetCurrentDisplayMode

void cWindow::CalculateWindowSize() {
	SDL_DisplayMode current;
	SDL_GetCurrentDisplayMode(0, &current);

	while ((mOriginalResolution.mWidth * mWindow_Multiplier) <= (unsigned int) (current.w / 2) &&
		(mOriginalResolution.mHeight * mWindow_Multiplier) <= (unsigned int) (current.h / 2)) {
		++mWindow_Multiplier;
	}

	SetWindowSize(mWindow_Multiplier);
}
开发者ID:maniacs-games,项目名称:DrCreep,代码行数:11,代码来源:window.cpp


注:本文中的SetWindowSize函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。