set focus to main dialog form in MFC (SOLVED)
-
hi, i have developed program where two separate windows, one containing Map and other the dialog form with some controls, are opened. the program is when i click on Map window, its coordinates are displayed in the static text on the dialog form window. what i want is that when i click on Map window (which is at the front at the time of clicking) the dialog form window should appear at the front showing the results of my click, i.e the coordinates. Regards Jawad
-
hi, i have developed program where two separate windows, one containing Map and other the dialog form with some controls, are opened. the program is when i click on Map window, its coordinates are displayed in the static text on the dialog form window. what i want is that when i click on Map window (which is at the front at the time of clicking) the dialog form window should appear at the front showing the results of my click, i.e the coordinates. Regards Jawad
When you click on the map you can set the dialog's property to
WS_EX_TOPMOST
as described here[^]. You would then need to reset that value on some other action. Alternatively you could use theSetWindowPos()
[^] function to alter its place in the Z-order, i.e. bring it to the front.One of these days I'm going to think of a really clever signature.
-
When you click on the map you can set the dialog's property to
WS_EX_TOPMOST
as described here[^]. You would then need to reset that value on some other action. Alternatively you could use theSetWindowPos()
[^] function to alter its place in the Z-order, i.e. bring it to the front.One of these days I'm going to think of a really clever signature.
thank you Richard MacCutchan.