J
John C.
I have a form which contains a 'timer'. It updates the
amount of time that has passed after the user starts it.
The DB will be converted to MDE after completion of code
developement.
I have been attempting to use an API call to determine
screen size.
Declare Function GetSystemMetrics& Lib "User32" (ByVal
nIndex&)
Const SM_CXSCREEN = 0 ' Width of screen
Const SM_CYSCREEN = 1 ' Height of screen
Const SM_CXFULLSCREEN = 16 ' Width of window client area
Const SM_CYFULLSCREEN = 17 ' Height of window client area
Const SM_CXFRAME = 32 ' Width of window frame
Const SM_CYFRAME = 33 ' Height of window frame
When I pass any of the listed constants to the function,
they all return 1024.
My current display is 1024 x 768.
Q:
(1) What could I be doing wrong? I have confirmed spelling
of constants.
(2) Of the listed constants, which one do I really want to
use to determine screen size?
(3) Can I make the MDE as 'on-top-always'?
(4) How do I resize the application to the size of the
form, which is relatively small?
Thankyou.
amount of time that has passed after the user starts it.
The DB will be converted to MDE after completion of code
developement.
I have been attempting to use an API call to determine
screen size.
Declare Function GetSystemMetrics& Lib "User32" (ByVal
nIndex&)
Const SM_CXSCREEN = 0 ' Width of screen
Const SM_CYSCREEN = 1 ' Height of screen
Const SM_CXFULLSCREEN = 16 ' Width of window client area
Const SM_CYFULLSCREEN = 17 ' Height of window client area
Const SM_CXFRAME = 32 ' Width of window frame
Const SM_CYFRAME = 33 ' Height of window frame
When I pass any of the listed constants to the function,
they all return 1024.
My current display is 1024 x 768.
Q:
(1) What could I be doing wrong? I have confirmed spelling
of constants.
(2) Of the listed constants, which one do I really want to
use to determine screen size?
(3) Can I make the MDE as 'on-top-always'?
(4) How do I resize the application to the size of the
form, which is relatively small?
Thankyou.