Hi all,
Can someone translate this C++ to VB.NET
int _tmain(int argc, _TCHAR* argv[])
{
HWND hWnd = ::FindWindow("ConsoleWindowClass",NULL);//Find window
HMENU hMenu = GetSystemMenu(hWnd,FALSE);
DeleteMenu(hMenu,SC_CLOSE,MF_BYCOMMAND);
RECT rc;
::GetWindowRect(hWnd,&rc);
SetWindowPos(hWnd,HWND_NOTOPMOST,rc.left,rc.top,rc.right -
rc.left,rc.bottom - rc.top,SWP_FRAMECHANGED);
printf("put any key to continue");
getchar();
return 0;
}
Thanks
Gerry
"Ying-Shen Yu[MSFT]" - 27 Apr 2004 06:10 GMT
Hi Gerry,
I have posted the translated version in the original thread.
"Disable x button of another program",
If you have problem when testing with the code, please feel free to reply
in that thread.
Thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.