Huw Davies (@huw) commented about programs/notepad/main.c:
}
}
+LRESULT CALLBACK EDIT_CallBackProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
The prototype isn't correct - it's not a regular wndproc. See: https://docs.microsoft.com/en-us/windows/win32/api/commctrl/nc-commctrl-subc...
Once the prototype is correct, there should be no need for the (SUBCLASSPROC) cast in the call to `SetWindowSubclass()` below. This is why it failed to run on Windows for me.
This could also be made `static` and the prototype removed from `main.h`.