in the emWin 5.40 reference manual I find:
--------------------------------
WM_GetInsideRect()
Description
Returns the coordinates of the client area of the active widget less the border size.
The function sends a message to the active window to retrieve the inside rectangle.
If the widget does not handle the message (that means the widget has no border)
WM_GetClientRect will be used to calculate the rectangle. The result is given in win-
dow coordinates. That means x0 and y0 of the GUI_RECT structure corresponds to
the border size in x and y, x1 and y1 corresponds to the size of the window less the
border size - 1.
---------------------------
He talks about a window border.
I am writing a new custom widget, how do I set the border, for example 1 pixel, so that WM_GetInsideRect() considers it?
best regards
Max
--------------------------------
WM_GetInsideRect()
Description
Returns the coordinates of the client area of the active widget less the border size.
The function sends a message to the active window to retrieve the inside rectangle.
If the widget does not handle the message (that means the widget has no border)
WM_GetClientRect will be used to calculate the rectangle. The result is given in win-
dow coordinates. That means x0 and y0 of the GUI_RECT structure corresponds to
the border size in x and y, x1 and y1 corresponds to the size of the window less the
border size - 1.
---------------------------
He talks about a window border.
I am writing a new custom widget, how do I set the border, for example 1 pixel, so that WM_GetInsideRect() considers it?
best regards
Max