Changeset 186
- Timestamp:
- 01/26/09 17:17:31 (18 months ago)
- Location:
- Mulberry/branches/users/kenneth_porter/FromTrunk/Win32/Sources
- Files:
-
- 4 modified
-
Application/Server/Browse_Dialog/CServerBrowseTable.cp (modified) (1 diff)
-
Application/Status/CStatusWindow.cp (modified) (2 diffs)
-
Application/Status/CStatusWindow.h (modified) (1 diff)
-
Support/Toolbars/CToolbar.cp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Mulberry/branches/users/kenneth_porter/FromTrunk/Win32/Sources/Application/Server/Browse_Dialog/CServerBrowseTable.cp
r143 r186 69 69 70 70 // Allow multiple selections 71 ModifyStyle(0, LVS_SINGLESEL); 71 if (m_hWnd) 72 ModifyStyle(0, LVS_SINGLESEL); 72 73 } 73 74 -
Mulberry/branches/users/kenneth_porter/FromTrunk/Win32/Sources/Application/Status/CStatusWindow.cp
r143 r186 57 57 BOOL CUTF8StatusBar::SetPaneTextUTF8(int nIndex, const char* utf8, BOOL bUpdate) 58 58 { 59 // Don't call into CWnd code if this thread doesn't own this CWnd 60 if (!FromHandlePermanent(GetSafeHwnd())) 61 return FALSE; 59 62 #ifdef _UNICODE 60 63 cdustring utf16(utf8); … … 105 108 } 106 109 110 BOOL CUTF8StatusBar::RedrawWindow(LPCRECT lpRectUpdate, 111 CRgn* prgnUpdate, 112 UINT flags) 113 { 114 // Don't call into CWnd code if this thread doesn't own this CWnd 115 return FromHandlePermanent(GetSafeHwnd()) ? CStatusBar::RedrawWindow(lpRectUpdate, prgnUpdate, flags) : FALSE; 116 } 117 107 118 // Init status 108 119 void CStatusWindow::InitStatusBar(CUTF8StatusBar* statusBar) -
Mulberry/branches/users/kenneth_porter/FromTrunk/Win32/Sources/Application/Status/CStatusWindow.h
r143 r186 29 29 CUTF8StatusBar() {} 30 30 31 BOOL SetPaneTextUTF8(int nIndex, const char* utf8, BOOL bUpdate = TRUE); 31 BOOL SetPaneTextUTF8(int nIndex, const char* utf8, BOOL bUpdate = TRUE); 32 33 BOOL RedrawWindow( 34 LPCRECT lpRectUpdate = NULL, 35 CRgn* prgnUpdate = NULL, 36 UINT flags = RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE 37 ); 32 38 }; 33 39 -
Mulberry/branches/users/kenneth_porter/FromTrunk/Win32/Sources/Support/Toolbars/CToolbar.cp
r143 r186 679 679 680 680 // Only if commander available 681 if (GetCommander()) 682 cmdui.DoUpdate(GetCommander(), true); 681 CWnd* commander = GetCommander(); 682 if (commander) 683 // we recreate the CWnd as we got it from another thread 684 cmdui.DoUpdate(CWnd::FromHandle(commander->GetSafeHwnd()), true); 683 685 684 686 // Check for visibility change tied to enable state