Re: Windows - DEVMODE
- Posted by Evan Marshall <1evan at sbcglobal.net> Nov 19, 2003
- 743 views
Wolf wrote: > <SNIP> > >I'm not sure setting up a DEVMODE structure this way is ideal ? >The MS docs state that one should use EnumDisplaySettings() to fill in your >DEVMODE structure completely with *valid* values first, and use this >structure when calling ChangeDisplaySettings(). >... as it is, you've got a lot of invalid zeroes ( garbage ), in this struc{ >Apparently, looping thru EnumDisplaySetting() by incrementing iModeNum, and >checking for 24,640,480... will give you the complete structure you need to >pass (to change), assuming it's a valid mode, without poking... > > Thanks. You could be right, but like I said previously, it works when I do it this way in C. I'll try this and see if it helps.