1
0
forked from Yadciel/c_tray

Fixing few more issues on Windows

This commit is contained in:
Dmitry Mikushin
2022-02-19 18:01:51 +01:00
parent 801d928305
commit 096bac7c9c

View File

@@ -1,5 +1,6 @@
#include <windows.h>
#include <shellapi.h>
#include "tray.h"
#define WM_TRAY_CALLBACK_MESSAGE (WM_USER + 1)
#define WC_TRAY_CLASS_NAME "TRAY"
@@ -81,7 +82,7 @@ static HMENU _tray_menu(struct tray_menu *m, UINT *id) {
return hmenu;
}
static int tray_init(struct tray *tray) {
int tray_init(struct tray *tray) {
memset(&wc, 0, sizeof(wc));
wc.cbSize = sizeof(WNDCLASSEX);
wc.lpfnWndProc = _tray_wnd_proc;