Vadim Zeitlin
1ddb6d2857
allow passing -1 range to SetScrollbar() to indicate the the scrollbar should be disabled and use this to implement wxSHOW_SB_ALWAYS in the generic wxScrollHelper
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-24 21:58:05 +00:00
Vadim Zeitlin
5a9379d7b0
implement wxLoadedDLL, a safer alternative to wxDL_GET_LOADED ( closes #10208 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 22:19:41 +00:00
Vadim Zeitlin
fe8f9ad70c
don't call DragFinish() before calling DragQueryPoint() or we (naturally) don't get the correct answer from the query ( #10238 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-04 00:17:36 +00:00
Vadim Zeitlin
d9698bd4ac
cleanup the Win32 window classes registration code: remove global variables and register the window classes we use on demand to avoid registering MDI or GL classes unnecessarily
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-29 22:19:55 +00:00
Vadim Zeitlin
5dec01d469
update after r57026 change to app.cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-29 15:03:28 +00:00
Vadim Zeitlin
e408bf5257
add safe wxStrlcpy() function and replaced all wxStrncpy() calls by it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-29 14:41:02 +00:00
Vadim Zeitlin
e2d4ce7d36
don't load comctl32.dll, just get the handle of the already loaded instance of it instead, this avoids accidentally loading 2 different versions of this DLL in the same process (see #10203 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-20 16:45:45 +00:00
Vadim Zeitlin
e822d1bd5f
fix more Borland release build warnings about unused variable/code without effect
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 10:30:49 +00:00
Vadim Zeitlin
f8cba58b84
reset deferred position/size if the window was moved immediately ( #10073 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 21:03:40 +00:00
Vadim Zeitlin
75e8e6dc29
return true from IsDoubleBuffered() if our TLW parent is a composited window; the old version returned false in this case which probably was unintentional as it doesn't seem to make sense (see #9666 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-02 22:33:08 +00:00
Vadim Zeitlin
d66d050088
add wxGet/Set/HasWindowExStyle() helpers and use them
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-02 22:30:05 +00:00
Vadim Zeitlin
7157abfba1
generate a size event from ShowWithEffect() for consistency with Show()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-29 12:35:15 +00:00
Vadim Zeitlin
d8df88930e
allow using SetFont(wxNullFont) to reset the font as per documented behaviour ( #3238 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 15:53:44 +00:00
Vadim Zeitlin
17a043046c
fix wxUniv/MSW build with wxUSE_MENUS==0 ( #9694 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-09 02:36:00 +00:00
Vadim Zeitlin
a6ac49b198
avoid duplicating wxWindow::HandleCommand() in wxFrame, only handle the commands for the frame menu bar elements there: this avoid generating duplicate events if a command event handler skips
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-05 20:51:16 +00:00
Robin Dunn
f60ca3e24c
Add a SetDoubleBuffered method for wxMSW (XP+)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-02 18:30:13 +00:00
Vadim Zeitlin
2303552172
assert if the window is being recreated, this indicates a bug in the user code and can be difficult to find without the help of this assert
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-11 17:18:15 +00:00
Václav Slavík
eed04c9999
changed ShowWithEffects() to use directional wxSHOW_EFFECT_XXX flags instead of additional wxDirection argument that doesn't always make sense; this also means the direction is never implicit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-08 21:56:26 +00:00
Vadim Zeitlin
f801d19a74
ENDSESSION_LOGOFF is a bit flag, test for it using bit end and not equality in WM_ENDSESSION handler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-11 17:56:30 +00:00
Václav Slavík
89267fe552
fixes to Freeze/Thawn when the window is shown or hidden in between Freeze and Thaw
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 11:55:11 +00:00
Václav Slavík
304435501b
ShowWithEffect must call wxWindowBase::Show
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-16 11:10:40 +00:00
Vadim Zeitlin
55cd5d10cd
don't generate duplicate resume events for PBT_APMRESUMEAUTOMATIC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 02:12:45 +00:00
Julian Smart
fe5451982e
Corrected typecasts (Sebastian Gottschalk)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 14:24:45 +00:00
Vadim Zeitlin
936bb82ec5
wxUniv compilation fix for gs_windowHandles assignment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-08 23:04:39 +00:00
Vadim Zeitlin
e322e3b6cc
call SetHWND(hWnd) from SubclassWin(), this is consistent with calling SetHWND(0) from UnsubclassWin()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-05 15:16:50 +00:00
Vadim Zeitlin
dca0f65178
more /Wp64 warning fixes: mostly use UINT_PTR instead of UINT and define our WX[WL]PARAM with __w64 if available to avoid hundreds of warnings when casting LPARAMs to pointers/handles
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-28 02:22:52 +00:00
Vadim Zeitlin
d9fda37ba1
restore checks for SM_SWAPBUTTON, it is not defined in WinCE SDK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-24 22:59:07 +00:00
Vadim Zeitlin
fcc7fdb689
don't clutter the code with (apparently) unnecessary SM_SWAPBUTTON checks (patch 1892656)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-15 14:35:11 +00:00
Julian Smart
df707c27b3
Cut down on unnecessary update events
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-14 11:08:49 +00:00
Václav Slavík
b65f16dabd
fixed wxTextCtrl to not process clipboard events twice if there's a custom wxEVT_COMMAND_TEXT_* handler; move WM_PASTE/CUT/COPY processing to wxWindow where it belongs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-02 22:29:19 +00:00
Vadim Zeitlin
4eb77d8bce
generate focus and kill focus events for wxTextCtrl at wxWindow level instead of doing it in wxTextCtrl itself and specifically disabling focus event generation for text controls in wxWindow
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-24 09:34:05 +00:00
Vadim Zeitlin
e044841350
don't create unnecessary temporary wxFont (patch theFont)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-16 01:43:00 +00:00
Vadim Zeitlin
e2fc2bd51c
add wxDL_QUIET flag; use RawGetSymbol() instead of GetSymbol() in wxDL_INIT_FUNC to avoid error messages for missing functions (this is also consistent with wxDL_INIT_FUNC_AW)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-06 01:30:58 +00:00
Vadim Zeitlin
6e3e6c8efb
fix comparison of BYTE variable with -1 after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-06 00:27:41 +00:00
Vadim Zeitlin
ad294cb8f6
fix handling of OEM VKs in wxCharCodeWXToMSW() (patch 1810940)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-05 18:59:09 +00:00
Vadim Zeitlin
17808a7596
move Freeze() and Thaw() to wxWindowBase to ensure that they behave consistently (i.e. recursively, as described in the docs) in all ports; removed different duplications of freeze count from derived classes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-05 00:21:31 +00:00
Robert Roebling
1950edc304
Compilo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-22 21:21:17 +00:00
Vadim Zeitlin
eeb0bee1d3
unset the window as invoking window of wxCurrentPopupMenu (which now exists in all ports and not just wxMSW-based ones) if it being destroyed before the menu itself (modified patch 1837214)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-22 16:29:38 +00:00
Robert Roebling
888dde65f4
DC reorganization
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-30 13:48:22 +00:00
Václav Slavík
937013e0fd
1. added wxEvtHandler::SafelyProcessEvent() and wxWindow::HandleWindowEvent() to correctly handle exceptions in even handlers in wxGTK
...
2. use HandleWindowEvent() everywhere as more obvious and convenient shortcut for GetEventHandler()->ProcessEvent(); also for consistency with wxGTK where it's required
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-29 17:00:58 +00:00
Vadim Zeitlin
214875504e
define AW_XXX constants if SDK doesn't (fixes VC6 compilation, patch 1840451)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-28 19:03:07 +00:00
Julian Smart
28bf925c65
Fixed bug in border style translation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-28 18:56:39 +00:00
Vadim Zeitlin
376d7d9764
added Show/HideWithEffect() and implemented them using AnimateWindow() for Win32
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-24 16:15:08 +00:00
Vadim Zeitlin
6719c06a97
no real changes, just some cleanup: add wxIsAltDown() in addition to the existing wxIsShift/CtrlDown() and wxIsAnyModifiedDown() to test for all of them at once (slightly modified patch 1833235)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-17 00:24:07 +00:00
Vadim Zeitlin
0075ea2279
fix another minor bug in DLGC_WANTMESSAGE handling in MSWProcessMessage()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-13 17:32:47 +00:00
Vadim Zeitlin
ac5ada9671
fix unreachable code warning in TranslateBorder()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-13 16:16:58 +00:00
Vadim Zeitlin
53b0c2bcdd
correction to the changes of r49805 to make the code work as expected
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-13 16:16:04 +00:00
Julian Smart
28319afe55
Tidying
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-13 12:17:25 +00:00
Julian Smart
dc797d8e1b
More border rationalisation. GetDefaultBorder is now mostly defined in base class files.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-13 12:10:34 +00:00
Vadim Zeitlin
8e86978af5
don't forward Enter presses to the default button if any of the ancestor windows has DLGC_WANTMESSAGE dialog code (slightly modified patch 1828309)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-10 01:15:03 +00:00