| 469 | |
| 470 | |
| 471 | BOOL CMountPropertyPage::OnInitDialog() |
| 472 | { |
| 473 | CPropertyPage::OnInitDialog(); |
| 474 | |
| 475 | // TODO: Add extra initialization here |
| 476 | |
| 477 | #ifdef _DEBUG |
| 478 | const WCHAR* build_type = L"debug"; |
| 479 | #else |
| 480 | const WCHAR* build_type = L"release"; |
| 481 | #endif |
| 482 | |
| 483 | CString debug_mes = L"WARNING! LOGGING IS ENABLED! built on " + CString(__DATE__) + L" " + CString(__TIME__) + CString(L" ") + build_type; |
| 484 | |
| 485 | SetDlgItemText(IDC_DEBUGINFO, debug_mes); |
| 486 | |
| 487 | //Create the ToolTip control |
| 488 | if (!m_ToolTip.Create(this)) |
| 489 | { |
| 490 | TRACE0("Unable to create the ToolTip!"); |
| 491 | } else |
| 492 | { |
| 493 | // Add tool tips to the controls, either by hard coded string |
| 494 | // or using the string table resource |
| 495 | CWnd *pWnd = GetDlgItem(IDC_SAVE_PASSWORD); |
| 496 | if (pWnd) { |
| 497 | m_ToolTip.AddTool(pWnd, LocUtils::GetStringFromResources(IDS_TOOLTIP_ENABLE_SAVE_PASS).c_str()); |
| 498 | } |
| 499 | } |
| 500 | |
| 501 | CComboBox *pBox = (CComboBox*)GetDlgItem(IDC_PATH); |
| 502 | |
| 503 | int i; |
| 504 | |
| 505 | if (pBox) { |
| 506 | for (i = 0; i < m_numLastDirs; i++) { |
| 507 | if (m_lastDirs[i].GetLength()) |
| 508 | pBox->InsertString(i, m_lastDirs[i]); |
| 509 | } |
| 510 | } |
| 511 | |
| 512 | pBox = (CComboBox*)GetDlgItem(IDC_CONFIG_PATH); |
| 513 | |
| 514 | if (pBox) { |
| 515 | for (i = 0; i < m_numLastConfigs; i++) { |
| 516 | if (m_lastConfigs[i].GetLength()) |
| 517 | pBox->InsertString(i, m_lastConfigs[i]); |
| 518 | } |
| 519 | } |
| 520 | |
| 521 | CListCtrl *pList = (CListCtrl*)GetDlgItem(IDC_DRIVE_LETTERS); |
| 522 | |
| 523 | if (!pList) |
| 524 | return FALSE; |
| 525 | |
| 526 | LRESULT Style = ::SendMessage(pList->m_hWnd, LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0); |
| 527 | Style |= LVS_EX_FULLROWSELECT; |
| 528 | ::SendMessage(pList->m_hWnd, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, Style); |
nothing calls this directly
no test coverage detected