本文整理汇总了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_--;
}
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例6: SetXDropoff
void
CBlastNucleotideOptionsHandle::SetInitialWordOptionsDefaults()
{
SetXDropoff(BLAST_UNGAPPED_X_DROPOFF_NUCL);
SetWindowSize(BLAST_WINDOW_SIZE_NUCL);
SetOffDiagonalRange(BLAST_SCAN_RANGE_NUCL);
}
示例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;
}
示例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;
}
示例9: SetWindowSize
CVisBlendedSequence<TPixel>::CVisBlendedSequence( int WindowSize )
: CVisSequence<TPixel>(0, evissequenceLimitMemoryUsage|
evissequenceDelayReadUntilNeeded)
{
SetWindowSize(WindowSize);
m_pBlendRow = NULL;
Reset();
}
示例10: SetWindowSize
int CColourPicker::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CButton::OnCreate(lpCreateStruct) == -1)
return -1;
SetWindowSize(); // resize appropriately
return 0;
}
示例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
}
示例12: main
int main()
{
SetWindowSize(9, 5);
InitGraphics();
Welcome();
GiveInstructions();
return 0;
}
示例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;
}
示例14: SetFullScreen
void cWindow::SetOriginalRes( const cDimension& pDimension ) {
mOriginalResolution = pDimension;
if (!mWindowMode) {
SetFullScreen();
SetFullScreen();
} else
SetWindowSize( mWindow_Multiplier );
}
示例15: SDL_GetCurrentDisplayMode
void cWindow::CalculateWindowSize() {
SDL_DisplayMode current;
SDL_GetCurrentDisplayMode(0, ¤t);
while ((mOriginalResolution.mWidth * mWindow_Multiplier) <= (unsigned int) (current.w / 2) &&
(mOriginalResolution.mHeight * mWindow_Multiplier) <= (unsigned int) (current.h / 2)) {
++mWindow_Multiplier;
}
SetWindowSize(mWindow_Multiplier);
}