Must now include <windows.h> and not the pieces.
* choose.cc (create_listview): Clean up type mismatch problems.
* dialog.h (NEXT(id)): Ditto.
* geturl.cc (dialog): Ditto.
* install.cc (dialog): Ditto.
* splash.cc (load_dialog): Ditto.
+2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
+
+ * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
+ Must now include <windows.h> and not the pieces.
+ * choose.cc (create_listview): Clean up type mismatch problems.
+ * dialog.h (NEXT(id)): Ditto.
+ * geturl.cc (dialog): Ditto.
+ * install.cc (dialog): Ditto.
+ * splash.cc (load_dialog): Ditto.
+
Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
* tar.cc (class gzbz): Define dummy virtual functions.
r->left, r->top,
r->right-r->left+1, r->bottom-r->top+1,
dlg,
- MAKEINTRESOURCE(IDC_CHOOSE_LIST),
+ (HMENU) MAKEINTRESOURCE(IDC_CHOOSE_LIST),
hinstance,
0);
ShowWindow (lv, SW_SHOW);
#undef D
/* end this dialog and select the next. Pass 0 to exit the program */
-#define NEXT(id) EndDialog(h, 0), next_dialog = id
+#define NEXT(id) EndDialog((HWND)h, 0), next_dialog = id
/* Get the value of an EditText control. Pass the previously stored
value and it will free the memory if needed. */
{
int rv = 0;
MSG m;
- HANDLE gw_dialog = CreateDialog (hinstance, MAKEINTRESOURCE (IDD_DLSTATUS),
+ HWND gw_dialog = CreateDialog (hinstance, MAKEINTRESOURCE (IDD_DLSTATUS),
0, dialog_proc);
ShowWindow (gw_dialog, SW_SHOWNORMAL);
UpdateWindow (gw_dialog);
{
int rv = 0;
MSG m;
- HANDLE ins_dialog = CreateDialog (hinstance, MAKEINTRESOURCE (IDD_INSTATUS),
+ HWND ins_dialog = CreateDialog (hinstance, MAKEINTRESOURCE (IDD_INSTATUS),
0, dialog_proc);
if (ins_dialog == 0)
fatal ("create dialog");
load_dialog (HWND h)
{
char buffer[100];
- HANDLE v = GetDlgItem (h, IDC_VERSION);
+ HWND v = GetDlgItem (h, IDC_VERSION);
sprintf (buffer, "Setup.exe version %s",
version[0] ? version : "[unknown]");
SetWindowText (v, buffer);
so there's no point in parsing them all (even lean-n-mean). Doing
this cuts compile time in half. */
-#define _UNION_NAME(x)
-#define _STRUCT_NAME(x)
#define NOCOMATTRIBUTE
#include <stdarg.h>
-#include <windef.h>
-#include <basetyps.h>
-#include <winbase.h>
-#include <wingdi.h>
-#include <winuser.h>
-#include <wininet.h>
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+
+#include <wininet.h>
#include <windowsx.h>