| Revision | 027b16db0a1f5c3744d6720dbf7ef35293f11001 (tree) |
|---|---|
| Time | 2012-11-18 23:44:17 |
| Author | shom5xg <shom@.(no...> |
| Commiter | shom5xg |
変数名修正
| @@ -19,15 +19,15 @@ using namespace window_def; | ||
| 19 | 19 | |
| 20 | 20 | namespace |
| 21 | 21 | { |
| 22 | - b32 b_window_close = FALSE; | |
| 22 | + b32 s_bWindowClose = FALSE; | |
| 23 | 23 | |
| 24 | - b32 b_window_active = TRUE; | |
| 25 | - b32 b_message_box_appearing = FALSE; | |
| 24 | + b32 s_bWindowActive = TRUE; | |
| 25 | + b32 s_bMessageBoxAppearing = FALSE; | |
| 26 | 26 | |
| 27 | - u32 client_width = sc_client_width_init; | |
| 28 | - u32 client_height = sc_client_height_init; | |
| 29 | - u32 window_pos_x = sc_window_pos_x_init; | |
| 30 | - u32 window_pos_y = sc_window_pos_y_init; | |
| 27 | + u32 s_uClientWidth = sc_client_width_init; | |
| 28 | + u32 s_uClientHeight = sc_client_height_init; | |
| 29 | + u32 s_uWindowPosX = sc_window_pos_x_init; | |
| 30 | + u32 s_uWindowPosY = sc_window_pos_y_init; | |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 |
| @@ -67,7 +67,7 @@ HWND window::InitApp( HINSTANCE hinst, int nCmdShow ) | ||
| 67 | 67 | sc_sz_wnd_class_name, sc_sz_wnd_name, |
| 68 | 68 | ~(WS_MAXIMIZEBOX | WS_THICKFRAME) & WS_OVERLAPPEDWINDOW, |
| 69 | 69 | //最大化ボタンを持たない・境界変更のできない |
| 70 | - 0, 0, client_width, client_height, | |
| 70 | + 0, 0, s_uClientWidth, s_uClientHeight, | |
| 71 | 71 | GetDesktopWindow(), |
| 72 | 72 | NULL, hinst, NULL |
| 73 | 73 | ); |
| @@ -86,12 +86,12 @@ HWND window::InitApp( HINSTANCE hinst, int nCmdShow ) | ||
| 86 | 86 | DEBUG_BREAK(); |
| 87 | 87 | return NULL; |
| 88 | 88 | } |
| 89 | - int ww = client_width + | |
| 89 | + int ww = s_uClientWidth + | |
| 90 | 90 | ((wRect.right - wRect.left) - (cRect.right - cRect.left)); |
| 91 | - int wh = client_height + | |
| 91 | + int wh = s_uClientHeight + | |
| 92 | 92 | ((wRect.bottom - wRect.top) - (cRect.bottom - cRect.top)); |
| 93 | 93 | |
| 94 | - if( SetWindowPos( h_wnd, HWND_TOP, window_pos_x, window_pos_y, | |
| 94 | + if( SetWindowPos( h_wnd, HWND_TOP, s_uWindowPosX, s_uWindowPosY, | |
| 95 | 95 | ww, wh, SWP_SHOWWINDOW ) == 0 ) |
| 96 | 96 | { |
| 97 | 97 | DEBUG_BREAK(); |
| @@ -110,7 +110,7 @@ HWND window::InitApp( HINSTANCE hinst, int nCmdShow ) | ||
| 110 | 110 | |
| 111 | 111 | int window::FinApp( HWND h_wnd, HINSTANCE h_inst ) |
| 112 | 112 | { |
| 113 | - if( !b_window_close ) | |
| 113 | + if( !s_bWindowClose ) | |
| 114 | 114 | { |
| 115 | 115 | VERIFY( DestroyWindow( h_wnd ) != 0 ); |
| 116 | 116 | } |
| @@ -150,7 +150,7 @@ namespace | ||
| 150 | 150 | } |
| 151 | 151 | else |
| 152 | 152 | { |
| 153 | - b_window_close = TRUE; | |
| 153 | + s_bWindowClose = TRUE; | |
| 154 | 154 | |
| 155 | 155 | return TRUE; |
| 156 | 156 | } |
| @@ -194,13 +194,13 @@ LRESULT CALLBACK window::callback_msg_proc( | ||
| 194 | 194 | if( (int)w_param == VK_ESCAPE ) |
| 195 | 195 | { |
| 196 | 196 | //確認ダイアログを出す |
| 197 | - b_message_box_appearing = TRUE; | |
| 197 | + s_bMessageBoxAppearing = TRUE; | |
| 198 | 198 | int result = MessageBoxEx( |
| 199 | 199 | h_wnd, _T( "中断しますか?" ), sc_sz_wnd_name, |
| 200 | 200 | MB_YESNO | MB_ICONQUESTION | MB_DEFBUTTON2, |
| 201 | 201 | LANG_JAPANESE |
| 202 | 202 | ); |
| 203 | - b_message_box_appearing = FALSE; | |
| 203 | + s_bMessageBoxAppearing = FALSE; | |
| 204 | 204 | |
| 205 | 205 | ASSERT( result != 0 ); |
| 206 | 206 | if( result != IDNO/*choise cancel*/ ) |
| @@ -219,7 +219,7 @@ LRESULT CALLBACK window::callback_msg_proc( | ||
| 219 | 219 | if( w_param == WA_INACTIVE ) |
| 220 | 220 | //非アクティブ化 |
| 221 | 221 | { |
| 222 | - b_window_active = FALSE; | |
| 222 | + s_bWindowActive = FALSE; | |
| 223 | 223 | } |
| 224 | 224 | else |
| 225 | 225 | //アクティブ化 |
| @@ -227,7 +227,7 @@ LRESULT CALLBACK window::callback_msg_proc( | ||
| 227 | 227 | ///インプットの復帰 |
| 228 | 228 | //restart_device(); |
| 229 | 229 | |
| 230 | - b_window_active = TRUE; | |
| 230 | + s_bWindowActive = TRUE; | |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | return 0; |
| @@ -246,52 +246,52 @@ LRESULT CALLBACK window::callback_msg_proc( | ||
| 246 | 246 | |
| 247 | 247 | b32 window::IsWindowActive() |
| 248 | 248 | { |
| 249 | - return b_window_active; | |
| 249 | + return s_bWindowActive; | |
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | b32 window::IsMessageBoxAppearing() |
| 253 | 253 | { |
| 254 | - return b_message_box_appearing; | |
| 254 | + return s_bMessageBoxAppearing; | |
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | u32 window::GetClientWidth() |
| 258 | 258 | { |
| 259 | - return client_width; | |
| 259 | + return s_uClientWidth; | |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | 262 | u32 window::GetClientHeight() |
| 263 | 263 | { |
| 264 | - return client_height; | |
| 264 | + return s_uClientHeight; | |
| 265 | 265 | } |
| 266 | 266 | |
| 267 | 267 | void window::SetClientWidth( u32 width ) |
| 268 | 268 | { |
| 269 | - client_width = width; | |
| 269 | + s_uClientWidth = width; | |
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | void window::SetClientHeight( u32 height ) |
| 273 | 273 | { |
| 274 | - client_height = height; | |
| 274 | + s_uClientHeight = height; | |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | u32 window::GetWindowPosX() |
| 278 | 278 | { |
| 279 | - return window_pos_x; | |
| 279 | + return s_uWindowPosX; | |
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | u32 window::GetWindowPosY() |
| 283 | 283 | { |
| 284 | - return window_pos_y; | |
| 284 | + return s_uWindowPosY; | |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | 287 | void window::SetWindowPosX( u32 x ) |
| 288 | 288 | { |
| 289 | - window_pos_x = x; | |
| 289 | + s_uWindowPosX = x; | |
| 290 | 290 | } |
| 291 | 291 | |
| 292 | 292 | void window::SetWindowPosY( u32 y ) |
| 293 | 293 | { |
| 294 | - window_pos_y = y; | |
| 294 | + s_uWindowPosY = y; | |
| 295 | 295 | } |
| 296 | 296 | |
| 297 | 297 |