WCHAR szWndText[MAX_STR_LEN];
LoadStringW(hInst, IDS_SEARCH_TEXT, szBuf, _countof(szBuf));
- ::GetWindowTextW(m_SearchBar->m_hWnd, szWndText, MAX_STR_LEN);
+ m_SearchBar->GetWindowTextW(szWndText, MAX_STR_LEN);
if (wcscmp(szBuf, szWndText) == 0)
{
SearchEnabled = FALSE;
case EN_KILLFOCUS:
{
- ::GetWindowTextW(m_SearchBar->m_hWnd, szBuf, MAX_STR_LEN);
+ m_SearchBar->GetWindowTextW(szBuf, MAX_STR_LEN);
if (wcslen(szBuf) < 1)
{
LoadStringW(hInst, IDS_SEARCH_TEXT, szBuf, _countof(szBuf));
}
LoadStringW(hInst, IDS_SEARCH_TEXT, szBuf, _countof(szBuf));
- ::GetWindowTextW(m_SearchBar->m_hWnd, szWndText, MAX_STR_LEN);
+ m_SearchBar->GetWindowTextW(szWndText, MAX_STR_LEN);
if (wcscmp(szBuf, szWndText) != 0)
{
StringCbCopy(szSearchPattern, sizeof(szSearchPattern),
break;
case ID_EXIT:
- ::PostMessageW(m_hWnd, WM_CLOSE, 0, 0);
+ PostMessageW(WM_CLOSE, 0, 0);
break;
case ID_INSTALL:
break;
case ID_HELP:
- ::MessageBoxW(m_hWnd, L"Help not implemented yet", NULL, MB_OK);
+ MessageBoxW(L"Help not implemented yet", NULL, MB_OK);
break;
case ID_ABOUT:
0, 0, NULL,
LoadIcon(_AtlBaseModule.GetModuleInstance(), MAKEINTRESOURCE(IDI_MAIN)),
LoadCursor(NULL, IDC_ARROW),
- (HBRUSH) (COLOR_BTNFACE + 1), NULL,
+ (HBRUSH) (COLOR_BTNFACE + 1), MAKEINTRESOURCE(IDR_MAINMENU),
L"RAppsWnd", NULL },
NULL, NULL, IDC_ARROW, TRUE, 0, _T("")
};