summaryrefslogtreecommitdiffstats
path: root/win/tkWinInt.h
Commit message (Collapse)AuthorAgeFilesLines
* some more cygwin compatibility improvementsjan.nijtmans2012-04-061-2/+2
|\ | | | | format tk.decls like tcl8.5/8.6
| * some more cygwin compatibility improvementsjan.nijtmans2012-04-061-2/+2
| |
* | Purge RCS Keywords.dgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |
| * * win/tkWinInt.h: remove CS_CLASSDC (not recommended for any apps now)hobbs2007-12-051-2/+1
| | | | | | | | | | | | | | * win/tkWinX.c: and simplify WNDCLASS to one style. * win/tkWinWm.c: Reduce wrapper update for exStyle to toolwindow change only and set WS_EX_LAYERED as sticky (once set on a window, do not remove it) to reduce alpha transition flicker.
| * * win/tkWinInt.h (TkWinDisplayChanged): added declhobbs2004-09-231-1/+6
| | | | | | | | | | | | | | | | * win/tkWinX.c (TkWinDisplayChanged, TkpOpenDisplay): Correctly * win/tkWinWm.c (InvalidateSubTreeDepth, WmProc): handle color and screen resolution changes. Tested for 16/24/32 bpp changes on XP. May need more fixes for 8bpp switch, use of special colormaps, or other special palette handling cases. [Bug 223689]
| * * generic/tkInt.decls: Add decl for TkWinGetPlatformTheme.mdejong2004-09-231-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is only defined under Win32. * generic/tkIntPlatDecls.h: Regen. * generic/tkStubInit.c: Regen. * win/tkWinInt.h: Define TK_THEME_WIN_CLASSIC and TK_THEME_WIN_XP. * win/tkWinMenu.c (DrawMenuEntryAccelerator, DrawMenuEntryLabel): Draw a disabled 3D text highlight for the accelerator only with the Win95/98 look. Same goes for the menu entry text. * win/tkWinX.c (TkWinGetPlatformId, TkWinGetPlatformTheme): Automatically detect the Windows theme in use and return either TK_THEME_WIN_CLASSIC or TK_THEME_WIN_XP when the TkWinGetPlatformTheme function is invoked. [Patch 866194] * win/tkWinMenu.c: only provide a submenu handle when the MF_POPUP flag is given, fixing a recently-introduced crash when submenus are disabled. Also better error checking for this sort of situation in the future. * win/tkWinMenu.c (ReconfigureWindowsMenu): Fix drawing of a disabled (TkWinHandleMenuEvent, DrawMenuEntryArrow): cascade menu arrow. Tk was displaying a disabled cascade menu arrow in black instead of gray. This was caused by a bug in the Win32 code for user drawn menu items. The fix is to avoid telling Windows that the menu item is a cascade type and then draw the gray arrow bitmap on our own. [Patch 865842] * win/tkWinMenu.c (DrawWindowsSystemBitmap): Fix a strange Win32 bug where the logical coordinates returned by a call to DPtoLP are wrong the first time a menu is posted. This bug manifested itself by drawing the bitmap in the wrong place in a menu. The fix was to pass the newly created DC instead of the DC from the window. * win/tkWinMenu.c (DrawMenuEntryAccelerator): (DrawMenuEntryLabel): When drawing the label text and accelerator text for a disabled menu entry be sure to draw a 3D highlight. The only exception to this is when a disabled menu entry is highlighted, in that case do not draw a 3D hightlight. * win/tkWinMenu.c (DrawMenuEntryAccelerator, DrawMenuEntryArrow): Move the unused menu arrow drawing code in DrawMenuEntryAccelerator into a new function named DrawMenuEntryArrow. This makes no functional change but it will make it easier to fix things in the future.
| * * tests/winWm.test: Add 'wm attributes -alpha' to control toplevelhobbs2004-09-171-1/+2
| | | | | | | | | | * win/tkWinInt.h: alpha transparency on Win2K/XP+. * win/tkWinWm.c: TIP #222 [Patch 892194]
| * * win/tkWinDialog.c (Tk_MessageBoxObjCmd): Inherit the icon fromhobbs2004-08-201-1/+6
| | | | | | | | | | * win/tkWinInt.h: the -parent window for * win/tkWinWm.c (TkWinGetIcon): the MessageBox.
| * * win/tkWinX.c: fix drawing of unicode chars in menuhobbs2004-05-031-1/+3
| | | | | | | | | | * win/tkWinInt.h (TkWinProcs): titles. [Bug #904371] (riefenstahl) * win/tkWinMenu.c (ReconfigureWindowsMenu):
* | [Bug 2956548] TkpButtonSetDefaults only initializes one button typenijtmans2010-03-121-1/+4
| | | | | | | | | | Fix various gcc warnings, all backported from Tk 8.6 VC6++ does not have SPI_SETKEYBOARDCUES
* | doc/GetHINSTANCE.3 correct mentioned header filenijtmans2009-12-021-15/+7
| | | | | | | | | | make TkWinChildProc available in private stub table. [Bug #220600] and [Bug #220690].
* | Add in missing function definitions to support plain MSVC6 and usepatthoyts2007-12-141-1/+48
| | | | | | | | | | INT_PTR rather than LONG_PTR which isn'tr defined in the msvc6 headers.
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * win/tkWinInt.h: remove CS_CLASSDC (not recommended for any apps now)hobbs2007-12-051-2/+1
| | | | | | | | | | | | | | * win/tkWinX.c: and simplify WNDCLASS to one style. * win/tkWinWm.c: Reduce wrapper update for exStyle to toolwindow change only and set WS_EX_LAYERED as sticky (once set on a window, do not remove it) to reduce alpha transition flicker.
* | TIP #145 implementationpatthoyts2007-05-041-1/+2
| |
* | various "const" additions, in line with TIP #27nijtmans2007-01-051-2/+2
| | | | | | | | fix bug #1627732
* | More fixes (mostly getting rid of excess spaces)dkf2005-12-021-2/+2
| |
* | ANSIficationdkf2005-12-021-45/+52
| |
* | * win/tkWinInt.h: added private decls of Tk_GetEmbeddedMenuHWND,hobbs2005-06-011-2/+10
| | | | | | | | | | Tk_GetMenuHWND, TkWinCleanupContainerList, and TkpWmGetState to that are used across source files.
* | Modified to handle a wide-character title string of a toplevelchengyemao2005-01-311-1/+2
| |
* | Changed to make platform implementation ready for a toplevel -use option; ↵chengyemao2005-01-091-2/+2
| | | | | | | | completed a full toplevel -use option configuration for Windows
* | implemented overrideredirect for an embedded; corrected incorrect frame ↵chengyemao2004-12-201-1/+2
| | | | | | | | upper left x and y of an embedded toplevel
* | featrue implementation of Tk container and embedded including TK_MOVEWINDOW, ↵chengyemao2004-12-201-1/+10
| | | | | | | | TK_ICONIFY, TK_DEICONIFY, TK_WITHDRAW; replaced TK_TITLE with TK_GETFRAMEWID for setting container's title across process boundary; bug fix in wm overrideredirect for TK_EMBEDDED window
* | * win/tkWinInt.h (TkWinDisplayChanged): added declhobbs2004-09-231-1/+6
| | | | | | | | | | | | | | | | * win/tkWinX.c (TkWinDisplayChanged, TkpOpenDisplay): Correctly * win/tkWinWm.c (InvalidateSubTreeDepth, WmProc): handle color and screen resolution changes. Tested for 16/24/32 bpp changes on XP. May need more fixes for 8bpp switch, use of special colormaps, or other special palette handling cases. [Bug 223689]
* | * generic/tkInt.decls: Add decl for TkWinGetPlatformTheme.mdejong2004-09-211-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is only defined under Win32. * generic/tkIntPlatDecls.h: Regen. * generic/tkStubInit.c: Regen. * win/tkWinInt.h: Define TK_THEME_WIN_CLASSIC and TK_THEME_WIN_XP. * win/tkWinMenu.c (DrawMenuEntryAccelerator, DrawMenuEntryLabel): Draw a disabled 3D text highlight for the accelerator only with the Win95/98 look. Same goes for the menu entry text. * win/tkWinX.c (TkWinGetPlatformId, TkWinGetPlatformTheme): Automatically detect the Windows theme in use and return either TK_THEME_WIN_CLASSIC or TK_THEME_WIN_XP when the TkWinGetPlatformTheme function is invoked. [Patch 866194]
* | * doc/wm.n:hobbs2004-09-171-1/+2
| | | | | | | | | | | | * tests/winWm.test: Add 'wm attributes -alpha' to control toplevel * win/tkWinInt.h: alpha transparency on Win2K/XP+. * win/tkWinWm.c: TIP #222 [Patch 892194]
* | * win/tkWinDialog.c (Tk_MessageBoxObjCmd): Inherit the icon fromhobbs2004-08-201-1/+6
| | | | | | | | | | * win/tkWinInt.h: the -parent window for * win/tkWinWm.c (TkWinGetIcon): the MessageBox.
* | * win/tkWinX.c: fix drawing of unicode chars in menuhobbs2004-05-031-1/+3
|/ | | | | * win/tkWinInt.h (TkWinProcs): titles. [Bug #904371] (riefenstahl) * win/tkWinMenu.c (ReconfigureWindowsMenu):
* * win/tkWinInt.h:hobbs2003-02-261-2/+3
| | | | | | * win/tkWinDraw.c: * win/tkWinFont.c (Tk_DrawChars): add support for simple XOR text drawing on Windows. [Patch #685388] (martin)
* * win/tkWinInt.h: declaration for TkWinGetUnicodeEncodinghobbs2002-04-121-1/+7
| | | | | | | * win/tkWinDialog.c (GetFileNameW): use TkWinGetUnicodeEncoding * win/tkWinInit.c (TkpDisplayWarning): use TkWinGetUnicodeEncoding * win/tkWinFont.c: use TkWinGetUnicodeEncoding instead of static unicodeEncoding.
* * win/tkWinInt.h:hobbs2001-12-281-1/+27
| | | | | | | | * win/tkWinX.c: added TkWinProcs that represent a function table to switch between unicode and ansi procs on Windows. This is analogous to the TclWinProcs. Using Tcl_WinUtfToTChar, we can easily take advantage of using unicode functions where available without having to switch on the platform id each time.
* * win/makefile.vc:hobbs2001-03-301-1/+3
| | | | | | | | | * win/configure: * win/tcl.m4: added imm32.lib to LIBS_GUI for Tk IME support. * win/tkWinInt.h: * win/tkWinKey.c: * win/tkWinX.c: added support for changing IME on the fly in Windows (2000). (lam) [Patch #402993]
* * test/winClipboard.test:hobbs2000-04-121-6/+13
| | | | | | | | | | | | * win/tkWinInt.h: * win/tkWinClipboard.c (UpdateClipboard): * win/tkWinX.c (GenerateXEvent): added updatingClipboard tsd and TkWinUpdatingClipboard accessor function to allow us to flag ourselves when we are the ones updating the clipboard. This corrected inability to create our own clipboard types within a Tk application. [Bug: 2338 4318] * win/tkWinTest.c (TestclipboardCmd): improved TestclipboardCmd with better error handling and obj'ification
* * win/tkWinDialog.c: added unicode-aware open/save file dialogshobbs2000-03-311-8/+2
| | | | | | | | | | | | | | | | | | | | | | | * win/tkWinFont.c (TkpFontPkgInit): move private ref to platformId to TkWinGetPlatformId * win/tkWinMenu.c (SetDefaults): moved private use of versionInfo to TkWinGetPlatformId and removed all code for (versionInfo.dwMajorVersion < 4) (== Win32s) * win/tkWinX.c: * win/tkWin32Dll.c: moved TkWinGetPlatformId to tkWinX.c * win/tkWinInit.c: added TkWinXInit to TkpInit to ensure that its called for static Windows shells. [Bug: 3647] * win/tkWinInt.h: * win/tkWinX.c: * win/tkWinDraw.c (SetUpGraphicsPort): * win/tkWinScrlbr.c (UpdateScrollbar): removed use of tkpIsWin32s * win/tkWinInt.h (TkWinDCState struct): added bkmode value * win/tkWinDraw.c (TkWinGetDrawableDC, et al): added support for properly transparent dashed lines on Windows. [Bug: 4617]
* * win/tkWinInt.h: change extern to EXTERN for TkWinChildProchobbs2000-03-021-2/+14
| | | | | | | | declaration with extra #defs. [Bug: 4240] * tests/color.test: * xlib/xcolors.c (XParseColor FindColor): * win/tkWinColor.c (XAllocColor): Fixed bit fiddling for colors to return "correct" values for color mapping. [Bug: 4282]
* * win/tkWinInt.h: removed TkFontAttributes typedef (washobbs1999-11-191-3/+1
| | | | | | | | redundant with tkFont.h). * win/tkWinPort.h: put #ifndef __GNUC__ around redefinition of str[n]casecmp, as cygwin uses the originals. * win/tkWinX.c: changed GetCurrentTime to GetTickCount (the former is deprecated). [Bug: 2053]
* * Merged 8.1 branch into the main trunkstanton1999-04-161-5/+9
|
* Backported "focus -force" patch from 8.1.redman1999-03-101-1/+2
|
* integrated stubs into 8.0 main branchstanton1999-03-101-45/+5
|
* * win/tkWinInt.h:stanton1999-02-041-1/+2
| | | | | * win/tkWinPointer.c: Changed to cancel the mouse timer when a user initiated move/resize loop begins.
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-04-011-0/+194