Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Centering popup windows in secondary monitor

$
0
0

Hi All,

I want to have my popup windows centered over their parent window regardless of which monitor the parent window is currently on. The method I have found from Web searching depends on functions such as MonitorFromWindow, part of the MSDN Multiple Display Monitors Reference. But I can't find a way to link to these functions. For example:

integer*4, parameter:: MONITOR_DEFAULTNEAREST = 2
interface
   integer*4 function MonitorFromWindow(hWnd,Flags)
      integer*4,intent(in):: hWnd,Flags
   end function
end interface

hMonitor = MonitorFromWindow(hWndParent,MONITOR_DEFAULTNEAREST)

The linker gives me "Unresolved external symbol ...", etc

Any suggestions?

 

Many thanks in advance,

Mike

 


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>