--- pTk\mTk\win\tkWinDialog.c 2016-08-10 20:17:09.500000000 -0700
+++ pTk\mTk\win\tkWinDialog.c 2016-08-10 20:17:07.453125000 -0700
@@ -29,6 +29,9 @@
#include <shlobj.h> /* includes SHBrowseForFolder */
/* These needed for compilation with VC++ 5.2 */
+#ifndef BIF_NEWDIALOGSTYLE
+#define BIF_NEWDIALOGSTYLE 0x00000040
+#endif
#ifndef BIF_EDITBOX
#define BIF_EDITBOX 0x10
#endif
@@ -1777,7 +1780,7 @@
* Set flags to add edit box (needs 4.71 Shell DLLs), status text
+ line,
* validate edit box and
*/
- bInfo.ulFlags = BIF_EDITBOX | BIF_STATUSTEXT | BIF_RETURNFSANCE
+STORS
+ bInfo.ulFlags = BIF_NEWDIALOGSTYLE | BIF_EDITBOX | BIF_STATUSTE
+XT | BIF_RETURNFSANCESTORS
| BIF_VALIDATE;
/*
Thats the simplest way. Could also set width height with SetWindowPos function (Windows) but that requirs more pTk chops.
Also since I forgot how to fix this nonsense gcc -s -L../zlib -o pngtest pngtest.o libpng.a -lz -lm
gcc -s -o example example.o libz.a
gcc -s -o minigzip minigzip.o libz.a
gcc -s -o example_d example.o libzdll.a
example.o:example.c:(.text+0x33): undefined reference to `compress'
example.o:example.c:(.text+0x60): undefined reference to `uncompress'
Since Tk::PNG doesn't need those examples get rid of that junk #~ Tk-804.033\PNG\zlib\Makefile
#~ Tk-804.033\PNG\zlib\win32\Makefile.gcc
#~ all: $(STATICLIB) $(SHAREDLIB) $(IMPLIB) example minigzip example_d
+ minigzip_d
all: $(STATICLIB) $(SHAREDLIB) $(IMPLIB)
That should do it, although when I test this I run into memory access violation, and then I give up :)
|