Changeset 36365 for lang/objective-cplusplus/i3/trunk/src
- Timestamp:
- 01/08/10 10:48:41 (3 years ago)
- Location:
- lang/objective-cplusplus/i3/trunk/src
- Files:
-
- 6 modified
-
gui-windows/CompletionWindowPlatform.cpp (modified) (1 diff)
-
gui-windows/Gui.cpp (modified) (1 diff)
-
gui-windows/InputWindowPlatform.cpp (modified) (6 diffs)
-
gui-windows/OutputWindowPlatform.cpp (modified) (1 diff)
-
mil/include/mil/Thread.h (modified) (2 diffs)
-
mil/include/mil/os-windows/Os.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/src/gui-windows/CompletionWindowPlatform.cpp
r36327 r36365 92 92 createUI(); 93 93 UpdateWindow(local_window); 94 ShowWindow(local_window, SW_ SHOW);94 ShowWindow(local_window, SW_HIDE); 95 95 loop(); 96 96 } -
lang/objective-cplusplus/i3/trunk/src/gui-windows/Gui.cpp
r36359 r36365 53 53 #endif 54 54 55 #if defined(_MSC_VER) && !defined(NDEBUG) 55 #if defined(_MSC_VER) && !defined(NDEBUG) && 0 56 56 57 57 #define SET_DLL_ADDRESS(module, name) \ -
lang/objective-cplusplus/i3/trunk/src/gui-windows/InputWindowPlatform.cpp
r36364 r36365 55 55 return; 56 56 } else if (_tcscmp(e.command, _T("exit")) == 0) { 57 ShowWindow(mediator.getInputWindow().window.load(), SW_HIDE); 57 58 ExitEvent ex; 58 59 mediator.getInputWindow().post(ex, *this); … … 257 258 layout.window.height = client_height; 258 259 260 int x = layout.window.padding.left + layout.icon.width + layout.edit.padding.right; 261 int y = layout.window.height - layout.window.padding.bottom - layout.edit.height + layout.edit.padding.top; 259 262 int w = layout.window.width 260 263 - layout.window.padding.right - layout.window.padding.left … … 263 266 264 267 int h = layout.edit.height - layout.edit.padding.top - layout.edit.padding.bottom; 265 SetWindowPos(edit, 0, 0, 0, w, h, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOREDRAW | SWP_NOOWNERZORDER | SWP_NOZORDER); 268 269 SetWindowPos(edit, NULL, x, y, w, h, SWP_NOACTIVATE | SWP_NOREDRAW | SWP_NOOWNERZORDER | SWP_NOZORDER); 266 270 SetMsgHandled(false); 267 271 } … … 389 393 void InputWindowPlatform<InputWindow>::OnKeyDown(HWND hWnd, UINT vk, BOOL fDown, int cRepeat, UINT flags) { 390 394 if (vk == VK_ESCAPE) { 395 ShowWindow(local_window, SW_HIDE); 391 396 PostMessage(hWnd, WM_CLOSE, 0, 0); 392 397 } … … 739 744 // �G�f�B�b�g�R���g���[���쐬 740 745 // 741 int x = layout.window.padding.left + layout.icon.width + layout.edit.padding.right;742 int y = layout.window.height - layout.window.padding.bottom - layout.edit.height + layout.edit.padding.top;743 746 edit = CreateWindowEx( 744 747 richedit_exstyle, … … 748 751 _T(""), 749 752 richedit_style, 750 x,751 y,753 0, 754 0, 752 755 100, 753 756 100, -
lang/objective-cplusplus/i3/trunk/src/gui-windows/OutputWindowPlatform.cpp
r36327 r36365 92 92 createUI(); 93 93 UpdateWindow(local_window); 94 ShowWindow(local_window, SW_ SHOW);94 ShowWindow(local_window, SW_HIDE); 95 95 loop(); 96 96 } -
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/Thread.h
r36327 r36365 232 232 233 233 void join() { 234 for (int retry = 50 ; thread_routine_status.load() == RUNNING; retry--) {234 for (int retry = 500; thread_routine_status.load() == RUNNING; retry--) { 235 235 236 236 if (retry == 0) { … … 239 239 } 240 240 241 sleep(1);241 milli_sleep(50); 242 242 } 243 243 -
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/os-windows/Os.h
r35770 r36365 17 17 18 18 namespace mil { 19 20 inline static void milli_sleep(unsigned int milli_seconds) { 21 Sleep(milli_seconds); 22 } 19 23 20 24 inline static void sleep_gui() {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)