TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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;
}
}
Reply
Answers (
0
)
C#.Net
DataGrid in .NET CF 2.0