Home > Tips > MinGWでDTM_SETFORMATを送っても書式変更が行われない場合の対処法
1 | SendDlgItemMessage(hwndDlg,IDC_DATETIMEPICKER1,DTM_SETFORMAT,( WPARAM )0,( LPARAM )_T( "yyyyMMddHHmm" )); |
1 2 | #define DTM_SETFORMATA 0x1005 #define DTM_SETFORMATW 0x1050 |
1 2 3 4 | #define DTM_FIRST 0x1000 ... #define DTM_SETFORMATA (DTM_FIRST + 5) #define DTM_SETFORMATW (DTM_FIRST + 50) |
1 2 3 4 | #if (DTM_SETFORMATW == 0x1050) #undef DTM_SETFORMATW #define DTM_SETFORMATW 0x1032 #endif |