News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Change Display Resolution

Started by RuiLoureiro, September 20, 2009, 05:39:54 PM

Previous topic - Next topic

RuiLoureiro

Hi all,
       When i change the display resolution from 800x600 to 1280x1024 the status bar stay at the same position as before. Then i process  WM_DISPLAYCHANGE to Destroy the previous status bar and i create a new one, but it doesnt appear. If i close the program and run it again, itworks correctly
Some help ?
Thanks
Rui

RuiLoureiro

No one has anything to help ?
Thanks

MichaelW

Hi Rui,

Using the app from here:

http://www.masm32.com/board/index.php?topic=10892.0

I had that same problem, but I did not attempt to determine how to fix it because I seldom change my display resolution. My thoughts at the time were that the app should use EnumDisplaySettings to get a list of known-valid settings, and use one of those.

eschew obfuscation

RuiLoureiro

Hi MichaelW,
                      Many thanks

Ok i used EnumDisplaySettings too and it is a valid mode. Tomorrow i will go to try an example and i will put here.
Rui

RuiLoureiro

MichaelW,
                how are you ? fine, i hope.
Here is the example.
1. The prog starts at the resolution 800x600. Then we choose Definições->Change resolution and 1280x1024. What happen ? There isnt staus bar !
2. We close the prog (it is in 1280x1024) and restart. The status is there.
3. Change resolution to 800x600. the staus is there too
files below: screen3.zip (exe&asm), rsrc.rc, ecrã.exe
thanks

Bill Cravener

Quote from: MichaelW on September 22, 2009, 06:59:00 PM
Hi Rui,

Using the app from here:

http://www.masm32.com/board/index.php?topic=10892.0

I had that same problem, but I did not attempt to determine how to fix it because I seldom change my display resolution. My thoughts at the time were that the app should use EnumDisplaySettings to get a list of known-valid settings, and use one of those.



I did an example using enumdisplaysettings further down that thread using enumdisplaysettings.

Topic: http://www.masm32.com/board/index.php?topic=10892.15

File download: http://www.masm32.com/board/index.php?action=dlattach;topic=10892.0;id=5918
My MASM32 Examples.

"Prejudice does not arise from low intelligence it arises from conservative ideals to which people of low intelligence are drawn." ~ Isaidthat

RuiLoureiro

Cycle Saddles,
                    Ok but that is not the problem. Thanks

Another examples with a background image.
The files below: Screen4.zip (asm & inc only ) and rsrc.zip image to 800x600
                       Screen5.zip         "                              image to 1280x1024
EDIT: icould not post the exe ...is too large
Can you help me ?
Thanks