forked from Yadciel/c_tray
Fixing few more issues on Windows
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
|
#include "tray.h"
|
||||||
|
|
||||||
#define WM_TRAY_CALLBACK_MESSAGE (WM_USER + 1)
|
#define WM_TRAY_CALLBACK_MESSAGE (WM_USER + 1)
|
||||||
#define WC_TRAY_CLASS_NAME "TRAY"
|
#define WC_TRAY_CLASS_NAME "TRAY"
|
||||||
@@ -81,7 +82,7 @@ static HMENU _tray_menu(struct tray_menu *m, UINT *id) {
|
|||||||
return hmenu;
|
return hmenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tray_init(struct tray *tray) {
|
int tray_init(struct tray *tray) {
|
||||||
memset(&wc, 0, sizeof(wc));
|
memset(&wc, 0, sizeof(wc));
|
||||||
wc.cbSize = sizeof(WNDCLASSEX);
|
wc.cbSize = sizeof(WNDCLASSEX);
|
||||||
wc.lpfnWndProc = _tray_wnd_proc;
|
wc.lpfnWndProc = _tray_wnd_proc;
|
||||||
|
|||||||
Reference in New Issue
Block a user