mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-06 02:01:50 +08:00
use gal_pixel instead of int for GetWindowBkColor/SetWindowBkColor
This commit is contained in:
@@ -5369,7 +5369,7 @@ MG_EXPORT BOOL GUIAPI IsWindowEnabled (HWND hWnd);
|
||||
MG_EXPORT BOOL GUIAPI GetClientRect(HWND hWnd, PRECT prc);
|
||||
|
||||
/**
|
||||
* \fn int GUIAPI GetWindowBkColor (HWND hWnd)
|
||||
* \fn gal_pixel GUIAPI GetWindowBkColor (HWND hWnd)
|
||||
* \brief Returns the current background color of a window.
|
||||
*
|
||||
* This function returns the pixel value of the current background color of
|
||||
@@ -5379,12 +5379,14 @@ MG_EXPORT BOOL GUIAPI GetClientRect(HWND hWnd, PRECT prc);
|
||||
*
|
||||
* \return The pixel value of the background color.
|
||||
*
|
||||
* \note The type of return value changed from int to gal_pixel since v3.2.
|
||||
*
|
||||
* \sa SetWindowBkColor
|
||||
*/
|
||||
MG_EXPORT int GUIAPI GetWindowBkColor (HWND hWnd);
|
||||
MG_EXPORT gal_pixel GUIAPI GetWindowBkColor (HWND hWnd);
|
||||
|
||||
/**
|
||||
* \fn int GUIAPI SetWindowBkColor (HWND hWnd, int new_bkcolor)
|
||||
* \fn gal_pixel GUIAPI SetWindowBkColor (HWND hWnd, gal_pixel new_bkcolor)
|
||||
* \brief Sets the background color of a window.
|
||||
*
|
||||
* This function sets the background color of the specified window \a hWnd
|
||||
@@ -5396,9 +5398,12 @@ MG_EXPORT int GUIAPI GetWindowBkColor (HWND hWnd);
|
||||
* \param new_bkcolor The pixel value of the new background color.
|
||||
* \return The pixel value of the old background color.
|
||||
*
|
||||
* \note The type of return value and \a new_bkcolor changed from int to
|
||||
* gal_pixel since v3.2.
|
||||
*
|
||||
* \sa GetWindowBkColor
|
||||
*/
|
||||
MG_EXPORT int GUIAPI SetWindowBkColor (HWND hWnd, int new_bkcolor);
|
||||
MG_EXPORT gal_pixel GUIAPI SetWindowBkColor (HWND hWnd, gal_pixel new_bkcolor);
|
||||
|
||||
/**
|
||||
* \fn PLOGFONT GUIAPI GetWindowFont (HWND hWnd)
|
||||
|
||||
@@ -4196,7 +4196,7 @@ BOOL GUIAPI GetClientRect (HWND hWnd, PRECT prc)
|
||||
}
|
||||
|
||||
/******************** main window and control styles support *****************/
|
||||
int GUIAPI GetWindowBkColor (HWND hWnd)
|
||||
gal_pixel GUIAPI GetWindowBkColor (HWND hWnd)
|
||||
{
|
||||
PMAINWIN pWin = (PMAINWIN)hWnd;
|
||||
|
||||
@@ -4205,9 +4205,9 @@ int GUIAPI GetWindowBkColor (HWND hWnd)
|
||||
return pWin->iBkColor;
|
||||
}
|
||||
|
||||
int GUIAPI SetWindowBkColor (HWND hWnd, int new_bkcolor)
|
||||
gal_pixel GUIAPI SetWindowBkColor (HWND hWnd, gal_pixel new_bkcolor)
|
||||
{
|
||||
int old_bkcolor;
|
||||
gal_pixel old_bkcolor;
|
||||
PMAINWIN pWin;
|
||||
|
||||
MG_CHECK_RET (MG_IS_NORMAL_WINDOW(hWnd), PIXEL_invalid);
|
||||
|
||||
Reference in New Issue
Block a user