C
Craig
Hi,
I'm attempting to use SetWindowPos to flip between a few apps and I've
hit a problem. Whenever I use the following it doesn't seem to ignore
the nomove and nosize flags and moves the app to the top left and makes
it 0 x 0. Any suggestions please?
Const SWP_NOSIZE As Short = &H1
Const SWP_NOMOVE As Short = &H2
Public Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long,
ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal
cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
SetWindowPos(iHandle, -1, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE)
I'm attempting to use SetWindowPos to flip between a few apps and I've
hit a problem. Whenever I use the following it doesn't seem to ignore
the nomove and nosize flags and moves the app to the top left and makes
it 0 x 0. Any suggestions please?
Const SWP_NOSIZE As Short = &H1
Const SWP_NOMOVE As Short = &H2
Public Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long,
ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal
cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
SetWindowPos(iHandle, -1, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE)