Click here to Skip to main content
15,920,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Regarding Installation program Pin
trey3-Aug-00 8:28
trey3-Aug-00 8:28 
GeneralCDaoRecordSet crashes on Close Pin
Paul Ebert25-Jul-00 12:55
Paul Ebert25-Jul-00 12:55 
GeneralFinding bitmap resources Pin
Member 1062419025-Jul-00 5:52
Member 1062419025-Jul-00 5:52 
GeneralRe: Finding bitmap resources Pin
Feng Yuan25-Jul-00 16:03
Feng Yuan25-Jul-00 16:03 
Generalresizing the dialog box along with the controls for all resolutions Pin
Up25-Jul-00 8:21
Up25-Jul-00 8:21 
GeneralRe: resizing the dialog box along with the controls for all resolutions Pin
Benedict Verheyen25-Jul-00 23:14
sussBenedict Verheyen25-Jul-00 23:14 
GeneralRe: resizing the dialog box along with the controls for all resolutions Pin
Up26-Jul-00 7:45
Up26-Jul-00 7:45 
GeneralRe: resizing the dialog box along with the controls for all resolutions Pin
Benedict Verheyen27-Jul-00 2:36
sussBenedict Verheyen27-Jul-00 2:36 
I think that when you change the screen resolution while your program is running that you receive a WM_PAINT/WM_SIZE message from Windows.
Then you could write an WM_PAINT/WM_SIZE handler that paints the window according to the systemmetrics values.
You can probably just move the command button then to a position where it can be seen on the screen. You can use either of the functions to accomplish this.
Rundown:
-> Receive WM_PAINT/WM_SIZE
-> In WM_PAINT/WM_SIZE handler:
-> check the screenmetrics
-> call SetWindowPos / MoveWindow to place window correctly on screen
-> resize and/or move all controls on the screen

>>do i have to write the same code for all teh controls >>inside the dialog box too ???
as explained above, let the parent window handle this (dialog box)

GeneralRe: resizing the dialog box along with the controls for all resolutions Pin
Paolo Messina26-Jul-00 10:29
professionalPaolo Messina26-Jul-00 10:29 
GeneralVisual Studio and Intellisense Pin
Jeremy Davis25-Jul-00 3:26
Jeremy Davis25-Jul-00 3:26 
GeneralRe: Visual Studio and Intellisense Pin
peterchen25-Jul-00 9:47
peterchen25-Jul-00 9:47 
GeneralRe: Visual Studio and Intellisense Pin
Mike Dunn25-Jul-00 10:13
Mike Dunn25-Jul-00 10:13 
GeneralPop-up menus Pin
Roger25-Jul-00 1:58
Roger25-Jul-00 1:58 
GeneralRe: Pop-up menus Pin
Igor Chouvalov25-Jul-00 4:38
Igor Chouvalov25-Jul-00 4:38 
Generalvirtual serial port Pin
herb124-Jul-00 12:04
herb124-Jul-00 12:04 
GeneralRe: virtual serial port Pin
Gert Boddaert25-Jul-00 4:10
Gert Boddaert25-Jul-00 4:10 
QuestionMenus with bitmaps in C??? Pin
Lars Hammar24-Jul-00 11:10
sussLars Hammar24-Jul-00 11:10 
AnswerRe: Menus with bitmaps in C??? Pin
Igor25-Jul-00 4:13
Igor25-Jul-00 4:13 
QuestionHow to create MS Access file at runtime? Pin
Ammar24-Jul-00 1:54
Ammar24-Jul-00 1:54 
AnswerRe: How to create MS Access file at runtime? Pin
Sandra24-Jul-00 5:10
Sandra24-Jul-00 5:10 
GeneralGUI - minimize, maximize and close Pin
Stanik23-Jul-00 21:31
Stanik23-Jul-00 21:31 
GeneralRe: GUI - minimize, maximize and close Pin
Philip Nicoletti31-Jul-00 7:43
Philip Nicoletti31-Jul-00 7:43 
Generalmetafile to bitmap Pin
haipengl23-Jul-00 18:02
haipengl23-Jul-00 18:02 
GeneralRe: metafile to bitmap Pin
Arvind2323-Jul-00 18:37
Arvind2323-Jul-00 18:37 
GeneralRe: metafile to bitmap Pin
Feng Yuan23-Jul-00 21:47
Feng Yuan23-Jul-00 21:47 

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.