Commit Graph

149 Commits

Author SHA1 Message Date
Włodzimierz Skiba
c0089c96ec Minor cleanings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-15 07:40:12 +00:00
Vadim Zeitlin
d1e4a8182e make WinStruct<> available in non-GUI code too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 23:08:53 +00:00
Vadim Zeitlin
85fa5d02d8 removed (unused since quite some time) wxUSE_ITSY_BITSY
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-04 20:31:11 +00:00
Vadim Zeitlin
91ebae296d removed wxUSE_PENWINDOWS (and its misspellings), it didn't work and wasn't used/defined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-04 20:28:00 +00:00
Vadim Zeitlin
7d86a2d45c replaced wxMoveWindowDeferred() with wxWindow::DoMoveSibling()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-30 00:01:51 +00:00
Vadim Zeitlin
2be57a5131 added GlobalPtr: GlobalAlloc/Free() wrapper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-29 12:18:17 +00:00
Vadim Zeitlin
0645e2b90a renamed GlobalPtr to GlobalPtrLock
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-29 11:17:28 +00:00
Vadim Zeitlin
0cdd4e199e added AutoHANDLE class to close a HANDLE automatically
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-19 23:48:43 +00:00
Vadim Zeitlin
be2572a325 wxGetWinVersion() must be exported from base DLL, not core
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-07 16:55:08 +00:00
Vadim Zeitlin
3cbb739d3d forgot to export wxGetWinVersion() from DLL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-07 16:45:06 +00:00
Vadim Zeitlin
4c5da5e42d added wxGetWinVersion()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-07 13:29:43 +00:00
Michael Wetherell
8df9a8a047 No wxGetOSFHandle for Wine
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-25 16:05:22 +00:00
Vadim Zeitlin
cf831d8e2b added AutoHPEN, AutoHBRUSH, AutoHBITMAP; refactored CompatibleBitmap into the last one to be able to add MonoBitmap as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-22 13:59:45 +00:00
Michael Wetherell
c282a7a1fe Compilation fix for USE_UNIV=1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-06 15:41:32 +00:00
Julian Smart
8e44f3caab Worked around an apparent bug in Windows whereby some deferred positioning
failed: specifically when changing a position from x, to y, to x again.
Added deferred positioning to wxRadioBox, wxSlider and wxSpinCtrl and thereby
eliminated some refresh glitches when resizing.
Eliminated further refresh glitches caused by wxRadioBox (to nearby controls)
by refreshing parent when the radio box moves.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-28 14:45:09 +00:00
Vadim Zeitlin
c3732409ac simplifications and corrections to background drawing:
1. removed ApplyParentThemeBackground() not used any longer
2. removed ProvidesBackground() which is synonymous with
   !HasTransparentBackground()
3. removed a whole bunch of unused MSWXXX() methods
4. moved MSWControlColor() from wxWindow up to wxControl

results:

1. the gradient is still shown properly for static/radio boxes in notebooks
2. correct background colour is used for the static boxes
3. code is shorter and better commented


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 15:23:08 +00:00
Vadim Zeitlin
8704b36653 added wxCopyRectToRECT()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 11:31:55 +00:00
Vadim Zeitlin
a1372ae2fa added HDCClipper() class which automatically unselects clipping region in its dtor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 11:30:37 +00:00
Vadim Zeitlin
a27cbf44fc added AutoHRGN class; corrected GetHbrush[Of]() macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-02 01:15:47 +00:00
Vadim Zeitlin
f6840be66e added GetHimagelist()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-28 12:22:45 +00:00
Michael Wetherell
74fe675195 The DLL version of Watcom's C runtime doesn't have fileno, but the static
version does


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-14 01:24:40 +00:00
Michael Wetherell
78a94517c0 Temporary fix for Watcom link error 'fileno'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-13 21:01:37 +00:00
Michael Wetherell
18a1516c4b Move wxGetOSFHandle to include/wx/msw/private.h since it needs HANDLE anyway
and make it a macro. Make the 'default' return value for wxGetFileKind
wxFILE_KIND_DISK and add a comment explaining what it's for.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-26 15:31:42 +00:00
Vadim Zeitlin
77ec05d477 added ClassRegistrar (wraps Register/UnregisterClass Win32 API calls)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-30 16:57:57 +00:00
Włodzimierz Skiba
ef359b4350 Warning fixes for MinGW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-21 18:15:42 +00:00
Vadim Zeitlin
ef78230168 removed obsolete wxUSE_CTL3D
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-15 14:45:20 +00:00
Vadim Zeitlin
25b0e7c897 factored out wxGetFullModuleName(HMODULE) from wxGetFullModuleName()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-10 19:43:55 +00:00
Włodzimierz Skiba
e2bcbdfbc7 Metric conversion constants not doubled in each port code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-21 16:25:59 +00:00
Vadim Zeitlin
9688700c97 added wxRectFromRECT()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-11 23:32:20 +00:00
Vadim Zeitlin
978bb48f35 added CompatibleBitmap wrapper class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-19 16:47:51 +00:00
Vadim Zeitlin
57e075e99a removed trailing comma from enum (gcc 3.4 compilation fix)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-02 16:12:15 +00:00
Vadim Zeitlin
b41f29c357 suppress VC7.1 64 bit correctness warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-28 21:16:57 +00:00
Vadim Zeitlin
77d8d6cd64 added wxGetFullModuleName(); use it instead of calling ::GetModuleFileName() directly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-27 10:58:32 +00:00
Włodzimierz Skiba
078cf5cb75 Source cleaning: -1/wxID_ANY/wxNOT_FOUND, ::, TRUE/true, FALSE/false, whitespaces, tabs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-31 12:38:46 +00:00
Vadim Zeitlin
2ff56383e6 added WindowHDC similar to Screen/MemoryHDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-30 15:44:11 +00:00
Václav Slavík
7a5e53abb3 fixed warnings after GetFont prototype change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 14:25:47 +00:00
Vadim Zeitlin
329ac7daeb explicit this-> is required by C++ standard, not g++, in WinStruct template
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-09 22:01:54 +00:00
Václav Slavík
a7d174bf49 compilation fix for gcc-3.4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-31 21:50:16 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Vadim Zeitlin
2aaf17c223 GlobalLock/Unlock() are available under CE, no need to redefine them, it is already done in eVC 4 headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-04 13:02:56 +00:00
Vadim Zeitlin
3a5bcc4db0 removed Win16 code (patch 905241), last version with remains of Win16 support tagged with BEFORE_WIN16_REMOVAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-28 13:10:14 +00:00
Vadim Zeitlin
5171ea0ea9 added wxGet/SetWindowProc/UserData()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-10 12:56:25 +00:00
Vadim Zeitlin
ee50eab8d9 added GetHbrush() and GetHbrushOf()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 14:27:56 +00:00
Vadim Zeitlin
7577637342 added GetHpen() and GetHpenOf()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 13:54:43 +00:00
Chris Elliott
dd54f5d305 move define to better place
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 11:00:38 +00:00
Chris Elliott
50165591a5 fix bugs when compiling with dmars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 10:01:49 +00:00
Julian Smart
42d11c8e66 Compile with EVC 3.0 2002
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-15 22:28:21 +00:00
Václav Slavík
9ed0d735d5 added <windows.h> wrapper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-15 18:52:32 +00:00
Julian Smart
086b3a5b02 More WinCE mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 21:43:57 +00:00