mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 21:04:26 +00:00
![Amine Khaldi](/assets/img/avatar_default.png)
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
43 lines
1 KiB
C
43 lines
1 KiB
C
/*
|
|
* PROJECT: ReactOS Applications Manager
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: base/applications/rapps/statusbar.c
|
|
* PURPOSE: StatusBar functions
|
|
* PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org)
|
|
*/
|
|
|
|
#include "rapps.h"
|
|
|
|
HWND hStatusBar;
|
|
|
|
BOOL
|
|
CreateStatusBar(HWND hwnd)
|
|
{
|
|
hStatusBar = CreateWindowExW(0,
|
|
STATUSCLASSNAMEW,
|
|
NULL,
|
|
WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP,
|
|
0, 0, 0, 0,
|
|
hwnd,
|
|
(HMENU)IDC_STATUSBAR,
|
|
hInst,
|
|
NULL);
|
|
|
|
if (!hStatusBar)
|
|
{
|
|
/* TODO: Show error message */
|
|
return FALSE;
|
|
}
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
VOID
|
|
SetStatusBarText(LPCWSTR lpszText)
|
|
{
|
|
if (hStatusBar)
|
|
{
|
|
SendMessageW(hStatusBar, SB_SETTEXT, SBT_NOBORDERS, (LPARAM)lpszText);
|
|
}
|
|
}
|