Hello, VC++ Experts Does any of you know how to search for a String in a Specified String? Like this in VB
VB Code:
  1. If InStr(1,the_file,"SEX WITH YOUR MAMA",vbTextCompare)<>0 Then
  2. MsgBox "Geez, you do have some good **** in this file:)"
  3. End If
Also, I would like to know how to Pop out a MessageBox when I click on an Edit(TextBox)
I tried this:
PHP Code:
switch(msg){
case 
WM_COMMAND:
switch(
LOWORD(wParam)){
case 
EDIT1:
MessageBox(hwnd,"Hi","",0);
break;
}
break;
default:
return 
DefWindowProc(hwnd,msg,wParam,lParam);

It pops up the MessageBox twice! How to resolve it? It doesn't happen if the EDIT1 was a Button...