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