Hooked everything else together (initialParent, ui_windows.h in uipriv_windows.h). Now to fix build issues... (like a missing const in const char * fixed here too).
This commit is contained in:
parent
d14735883d
commit
a3c26ff652
|
@ -6,12 +6,14 @@ int nCmdShow;
|
||||||
|
|
||||||
HFONT hMessageFont;
|
HFONT hMessageFont;
|
||||||
|
|
||||||
|
HWND initialParent;
|
||||||
|
|
||||||
struct uiInitError {
|
struct uiInitError {
|
||||||
char *msg;
|
char *msg;
|
||||||
char failbuf[256];
|
char failbuf[256];
|
||||||
};
|
};
|
||||||
|
|
||||||
static void loadLastError(uiInitError *err, char *message)
|
static void loadLastError(uiInitError *err, const char *message)
|
||||||
{
|
{
|
||||||
DWORD le;
|
DWORD le;
|
||||||
|
|
||||||
|
@ -79,6 +81,11 @@ uiInitError *uiInit(uiInitOptions *o)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// give each control a reasonable initial parent
|
||||||
|
// don't free the initial parent!
|
||||||
|
// TODO tune this better; it shouldn't be closed, for instance
|
||||||
|
initialParent = uiWindowHandle(uiNewWindow("", 0, 0));
|
||||||
|
|
||||||
uiFree(err);
|
uiFree(err);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <oleacc.h>
|
#include <oleacc.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "uipriv.h"
|
#include "uipriv.h"
|
||||||
|
#include "ui_windows.h"
|
||||||
|
|
||||||
// ui internal window messages
|
// ui internal window messages
|
||||||
enum {
|
enum {
|
||||||
|
|
Loading…
Reference in New Issue