Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Socket not blocking Pin
Gabriel.P.G25-Nov-03 16:12
Gabriel.P.G25-Nov-03 16:12 
GeneralRe: Socket not blocking Pin
Shenthil26-Nov-03 19:26
Shenthil26-Nov-03 19:26 
GeneralRe: Socket not blocking Pin
Gabriel.P.G27-Nov-03 14:25
Gabriel.P.G27-Nov-03 14:25 
GeneralRe: Socket not blocking Pin
Shenthil27-Nov-03 17:51
Shenthil27-Nov-03 17:51 
GeneralDisable keyboard or mouse on desktop (All Dialogs) Pin
Amin Kha.22-Nov-03 8:34
Amin Kha.22-Nov-03 8:34 
GeneralRe: Disable keyboard or mouse on desktop (All Dialogs) Pin
John R. Shaw22-Nov-03 11:52
John R. Shaw22-Nov-03 11:52 
QuestionHow to disable keyboard or mouse on desktop (All Dialogs) Pin
Amin Kha.22-Nov-03 8:28
Amin Kha.22-Nov-03 8:28 
GeneralWindow Mode question Pin
ansontong22-Nov-03 5:02
ansontong22-Nov-03 5:02 
please let me know how can i make the program wiondow which cannot be adjusted, moved and closed by the user if I have to use WS_OVERLAPPEDWINDOW parameter in CreateWindowEx(). Initally, the program window should be in largest size.

HRESULT MyRegisterClass(HINSTANCE hInstance)
{
WNDCLASSEX wcex;

wcex.cbSize = sizeof(WNDCLASSEX);

wcex.style = CS_VREDRAW | CS_HREDRAW | CS_NOCLOSE ; // disable the close icon
wcex.lpfnWndProc = (WNDPROC)WndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_PLANTMONSYS); //IDI_PLANTMONSYS
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName = NULL; // Disabled (LPCSTR)IDC_PLANTMONSYS;
wcex.lpszClassName = ClassName;
wcex.hIconSm = LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL);


return RegisterClassEx(&wcex);
}

//
// FUNCTION: InitInstance(HANDLE, int)
//
// PURPOSE: Saves instance handle and creates main window
//
//
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
HWND hWnd;

hInst = hInstance; // Store instance handle in our global variable

hWnd = CreateWindowEx(
WS_EX_TOPMOST,
ClassName, /* name of window class */
TEXT("Plant Monitoring System (Final Year Project 2002-2004)"), /* title that shown on the window */
WS_OVERLAPPEDWINDOW | WS_VISIBLE , /* window style - normal // WS_OVERLAPPEDWINDOW | WS_VISIBLE|WS_POPUP no Heading |WS_SYSMENU Menu`*/
CW_USEDEFAULT, /* X coordinate - let Windows to decide */
CW_USEDEFAULT, /* Y coordinate - let Windows to decide */
cxScreen, /* width - let Windows to decide */
cyScreen, /* height - let Windows decide */
NULL, /* no parent window */
NULL, /* no menu */
hInstance, /* handle of this instance of the program */
NULL /* no additional arguments */
);

if (!hWnd)
{
return FALSE;
}

ShowWindow(hWnd, SW_MAXIMIZE ); // max size ,nCmdShow
UpdateWindow(hWnd);

return TRUE;
}

Regards,
Anson
GeneralRe: Window Mode question Pin
John R. Shaw22-Nov-03 7:30
John R. Shaw22-Nov-03 7:30 
GeneralSending SMS messages using Visual c++ Pin
nolanl22-Nov-03 4:24
nolanl22-Nov-03 4:24 
GeneralRe: Sending SMS messages using Visual c++ Pin
Joaquín M López Muñoz22-Nov-03 8:23
Joaquín M López Muñoz22-Nov-03 8:23 
GeneralRe: Sending SMS messages using Visual c++ Pin
Peter Molnar22-Nov-03 13:23
Peter Molnar22-Nov-03 13:23 
QuestionIs typedef'd or not? Pin
Dominik Reichl22-Nov-03 1:14
Dominik Reichl22-Nov-03 1:14 
AnswerRe: Is typedef'd or not? Pin
Ian Darling22-Nov-03 3:12
Ian Darling22-Nov-03 3:12 
AnswerRe: Is typedef'd or not? Pin
Jörgen Sigvardsson22-Nov-03 4:05
Jörgen Sigvardsson22-Nov-03 4:05 
GeneralRe: Is typedef'd or not? Pin
Dominik Reichl22-Nov-03 4:24
Dominik Reichl22-Nov-03 4:24 
GeneralRe: Is typedef'd or not? Pin
Jörgen Sigvardsson22-Nov-03 6:21
Jörgen Sigvardsson22-Nov-03 6:21 
GeneralNeed urgent assistance Pin
EranC22-Nov-03 1:11
EranC22-Nov-03 1:11 
GeneralRe: Need urgent assistance Pin
JWood22-Nov-03 5:13
JWood22-Nov-03 5:13 
GeneralRe: Need urgent assistance Pin
Ivor S. Sargoytchev22-Nov-03 7:25
Ivor S. Sargoytchev22-Nov-03 7:25 
GeneralRe: Need urgent assistance Pin
JWood22-Nov-03 9:49
JWood22-Nov-03 9:49 
GeneralRe: Need urgent assistance Pin
Ivor S. Sargoytchev22-Nov-03 11:42
Ivor S. Sargoytchev22-Nov-03 11:42 
GeneralRe: Need urgent assistance Pin
BaldwinMartin22-Nov-03 21:42
BaldwinMartin22-Nov-03 21:42 
GeneralEnvironment variables Pin
cberam22-Nov-03 0:23
cberam22-Nov-03 0:23 
QuestionResizing Form with ImageMouseMove: how to change cursor? Pin
[ Jûroehn ]21-Nov-03 23:43
[ Jûroehn ]21-Nov-03 23:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.