C / C++ / MFC
|
|
 |

|
Hi Team,
I have create modeless dialog, which contain Edit Box, and put it in Excel.
The problem is every time I enter a text to my edit, the text disappear in Edit Box instead it show in a active cell in Excel.
Does someone has any suggestion?
Below is a code snipped
<pre lang="c++">BOOL CALLBACK ToolDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
switch(Message)
{
case WM_COMMAND:
break;
case WM_GETDLGCODE:
return TRUE;
case WM_SETFOCUS:
return TRUE;
case WM_KILLFOCUS:
return TRUE;
default:
return FALSE;
}
return TRUE;
}
void CWPFInDialog::CreateMyDialog(HWND a_hwnd)
{
m_dialogHwnd = CreateDialog(g_hinstDLL, MAKEINTRESOURCE(IDD_DIALOGHOST), a_hwnd, ToolDlgProc);
if(m_dialogHwnd == NULL)
{
ShowWindow(m_dialogHwnd, SW_SHOW);
}
}
Thanks,
PS
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin