Click here to Skip to main content
15,917,565 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Browser in new window Pin
RobJones1-Oct-03 5:00
RobJones1-Oct-03 5:00 
QuestionHow to move character or word on screen Pin
sunju1-Oct-03 2:10
sunju1-Oct-03 2:10 
AnswerRe: How to move character or word on screen Pin
David Crow1-Oct-03 5:00
David Crow1-Oct-03 5:00 
AnswerRe: How to move character or word on screen Pin
Terry O'Nolley1-Oct-03 15:51
Terry O'Nolley1-Oct-03 15:51 
GeneralEnumWindows Pin
Jadeja1-Oct-03 0:20
Jadeja1-Oct-03 0:20 
GeneralRe: EnumWindows Pin
Mike Dimmick1-Oct-03 2:00
Mike Dimmick1-Oct-03 2:00 
GeneralRe: EnumWindows Pin
Jadeja1-Oct-03 15:22
Jadeja1-Oct-03 15:22 
GeneralChanging the resolution dynamically Pin
Bernhard30-Sep-03 23:54
Bernhard30-Sep-03 23:54 
We had some code, which mysticly worked on NT4
void CMainFrame::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized) 
{
	CFrameWnd::OnActivate(nState, pWndOther, bMinimized);
	
	// TODO: Add your message handler code here
	
	if(nState == WA_INACTIVE)
		ChangeDisplaySettings(NULL, 0);

	if(nState != WA_INACTIVE){
		DEVMODE* pDevMode;
	
		pDevMode = new DEVMODE;
		
		pDevMode->dmSize = sizeof(DEVMODE);
	//	dm.dmDriverExtra = 800;
		if(EnumDisplaySettings(NULL,ENUM_CURRENT_SETTINGS, pDevMode )){
			DWORD dw_width = pDevMode->dmPelsWidth;
			DWORD dw_height= pDevMode->dmPelsHeight;

			if(dw_width < 1024){
				
				pDevMode->dmPelsWidth =  1024;
				pDevMode->dmPelsHeight =  768;
				ChangeDisplaySettings(pDevMode, 0);
								}
			}
		delete pDevMode;
		}

	}//if(!WA_INACTIVE		
}

if i am changing my resolution to 800x600 and starting the application the resolution is set to 1024x768 (like i expected...) but the start bar is floating around (when it is set to "stay in foreground".. sorry bad translation... but i have got the german version installed)

i've tried out some parameters for ChangeDisplaySettings.. but it didn't work in the way it did in WinNT..

any ideas ?



"I'm from the South Bronx, and I don't care what you say: those cows look dangerous."
U.S. Secretary of State Colin Powell at George Bush's ranch in Texas
GeneralRe: Changing the resolution dynamically Pin
David Crow1-Oct-03 7:27
David Crow1-Oct-03 7:27 
GeneralRe: Changing the resolution dynamically Pin
Bernhard1-Oct-03 19:11
Bernhard1-Oct-03 19:11 
GeneralRe: Changing the resolution dynamically Pin
Anthony_Yio1-Oct-03 15:28
Anthony_Yio1-Oct-03 15:28 
GeneralGDI+ font and scalable graphics Pin
Member 55064430-Sep-03 22:50
Member 55064430-Sep-03 22:50 
GeneralRe: GDI+ font and scalable graphics Pin
arturapps1-Oct-03 2:58
arturapps1-Oct-03 2:58 
GeneralRe: GDI+ font and scalable graphics Pin
Member 5506441-Oct-03 3:09
Member 5506441-Oct-03 3:09 
GeneralRe: GDI+ font and scalable graphics Pin
arturapps1-Oct-03 3:23
arturapps1-Oct-03 3:23 
GeneralRe: GDI+ font and scalable graphics Pin
Member 5506441-Oct-03 3:26
Member 5506441-Oct-03 3:26 
GeneralRe: GDI+ font and scalable graphics Pin
Joel Lucsy1-Oct-03 3:40
Joel Lucsy1-Oct-03 3:40 
GeneralCommand Line to Edit Control Pin
skallestad30-Sep-03 22:18
skallestad30-Sep-03 22:18 
GeneralRe: Command Line to Edit Control Pin
David Crow1-Oct-03 4:14
David Crow1-Oct-03 4:14 
GeneralThanks! Pin
skallestad1-Oct-03 7:44
skallestad1-Oct-03 7:44 
GeneralCTreeCtrl and MFC Dialog Pin
hph30-Sep-03 21:09
hph30-Sep-03 21:09 
GeneralRe: CTreeCtrl and MFC Dialog Pin
hph1-Oct-03 2:09
hph1-Oct-03 2:09 
GeneralRe: CTreeCtrl and MFC Dialog Pin
Mike Dimmick1-Oct-03 2:09
Mike Dimmick1-Oct-03 2:09 
GeneralRe: CTreeCtrl and MFC Dialog Pin
Michael Dunn1-Oct-03 5:19
sitebuilderMichael Dunn1-Oct-03 5:19 
GeneralKilling program execution Pin
esepich30-Sep-03 18:32
esepich30-Sep-03 18:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.