반응형 스타일 변경1 01_Window 스타일 변경 // 윈도우 스타일 변경 #include // 실행시 윈도우 객채의 내용을 변경해서 실행 시간에 윈도우 style 변경하기 void ModifyStyle( HWND hwnd, UINT Remove, UINT Add, BOOL bReDraw = TRUE) { // 1. 현재 스타일 얻어 오기: GetWindowLong UINT style = GetWindowLong(hwnd, GWL_STYLE); // 2. style 변경: bit 연산.. style = style & ~Remove; style = style | Add; SetWindowLong( hwnd, GWL_STYLE, style); // 3. style 변경 후 다시 그려야 함.. : SetWindowPos if( bReDraw) { SetWin.. 2021. 11. 29. 이전 1 다음 반응형