Added #include "_cgo_export.h" to files that needed it and fixed a cast error in controls_windows.c that that revealed. Anyway buttons work now on all platforms, woo :D

This commit is contained in:
Pietro Gagliardi 2014-07-18 00:29:15 -04:00
parent d2f09a0222
commit 489ce0a053
4 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,7 @@
// 17 july 2014
#include "winapi_windows.h"
#include "_cgo_export.h"
LRESULT getWindowTextLen(HWND hwnd)
{

View File

@ -1,6 +1,7 @@
/* 17 july 2014 */
#include "winapi_windows.h"
#include "_cgo_export.h"
HWND newWidget(LPCWSTR class, DWORD style, DWORD extstyle)
{
@ -49,7 +50,7 @@ static LRESULT CALLBACK buttonSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA
switch (uMsg) {
case msgCOMMAND:
if (HIWORD(wParam) == BN_CLICKED) {
buttonClicked(data);
buttonClicked((void *) data);
return 0;
}
return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam);

View File

@ -1,6 +1,7 @@
/* 17 july 2014 */
#include "winapi_windows.h"
#include "_cgo_export.h"
HDC getDC(HWND hwnd)
{

View File

@ -1,6 +1,7 @@
/* 17 july 2014 */
#include "winapi_windows.h"
#include "_cgo_export.h"
#define windowclass L"gouiwindow"