Kumar

Kumar

  • NA
  • 1
  • 0

Capture Window Message

Oct 9 2008 2:15 AM
Hi All,

I'm developing C#
smart devices application based on C++ dll.
I'm having problem to capture windows message posted in C++.
Can some one help me to solve this problem? Thanks in advanced.

My C++ codes to capture message. I need similar function to capture in C#.


----------------------------------------------------------------------------------
LRESULT CMobileOperationDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
int wmId, wmEvent;
TCHAR string[1024];
TCHAR *pstring = string;
BOOL ret;

switch (message)
{
case WM_LOGINNETWORK:
wmId = LowWord(wParam);
wmEvent = HiWord(wParam);

if(wmId)//login into network
{
ret = MdmMan.SglMode_GetOperator(pstring);

SetDlgItemText(IDC_STATIC_MODEMSTATUS, pstring);
}
else
{
SetDlgItemText(IDC_STATIC_MODEMSTATUS, _T("Network search..."));
}
break;
}
}