Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I get the handle of the dialog ? Pin
pallaka8-Jul-08 1:45
pallaka8-Jul-08 1:45 
GeneralRe: How can I get the handle of the dialog ? Pin
Saurabh.Garg8-Jul-08 1:54
Saurabh.Garg8-Jul-08 1:54 
GeneralRe: How can I get the handle of the dialog ? Pin
pallaka8-Jul-08 2:00
pallaka8-Jul-08 2:00 
QuestionRe: How can I get the handle of the dialog ? Pin
CPallini8-Jul-08 2:13
mveCPallini8-Jul-08 2:13 
AnswerRe: How can I get the handle of the dialog ? Pin
pallaka8-Jul-08 2:15
pallaka8-Jul-08 2:15 
GeneralRe: How can I get the handle of the dialog ? Pin
Saurabh.Garg8-Jul-08 2:23
Saurabh.Garg8-Jul-08 2:23 
AnswerRe: How can I get the handle of the dialog ? Pin
Mark Salsbery8-Jul-08 6:39
Mark Salsbery8-Jul-08 6:39 
Questionsetting config in win 32 pgm ................ Pin
srikanthyenuganti8-Jul-08 1:05
srikanthyenuganti8-Jul-08 1:05 
Q)the question is my program run without error but it does not display the output

i need to change the setting options in project can any one tell where to change it

my program is a simple win 32 pgm


#include<windows.h>
#include"resource.h"
LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd)
{
WNDCLASS wc;
MSG msg;
HWND hMainWnd;
if(hPrevInstance!=0)
{
wc.cbClsExtra=0;
wc.cbWndExtra=0;
wc.hInstance=hInstance;
wc.lpfnWndProc=WndProc;
wc.style=CS_HREDRAW|CS_VREDRAW;
wc.hCursor=LoadCursor(hInstance,MAKEINTRESOURCE(IDC_MYCURSOR));
wc.hIcon=LoadIcon(hInstance,MAKEINTRESOURCE(IDI_MYICON));
wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);
wc.lpszClassName="WindowClass";
wc.lpszMenuName=NULL;
}
RegisterClass(&wc);
hMainWnd=CreateWindow("WindowClass","MyfirstWindowsPgm",0,0,0,300,300,NULL,NULL,hInstance,0);
ShowWindow(hMainWnd,nShowCmd);
UpdateWindow(hMainWnd);
while(GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;

}
LRESULT CALLBACK WndProc(HWND hMainWnd,UINT message,WPARAM wParam,LPARAM lParam)
{
switch(message)
{ case WM_CREATE: MessageBox(hMainWnd,"Window created","WM_CREATED",MB_OK);
break;

case WM_DESTROY:
MessageBox(hMainWnd,"Window Destroyed","WM_DESTROYED",MB_OKCANCEL);
PostQuitMessage(0);
break;
case WM_LBUTTONDOWN:
MessageBox(hMainWnd,"left mouse button clicked","WM_LBUTTONDOWN",MB_OK);
break;
default:
return(DefWindowProc(hMainWnd,message,wParam,lParam));
}
return 0;
}

Thanks and Regrads
From Srikanth.Y

AnswerRe: setting config in win 32 pgm ................ Pin
Saurabh.Garg8-Jul-08 1:30
Saurabh.Garg8-Jul-08 1:30 
GeneralRe: setting config in win 32 pgm ................ Pin
srikanthyenuganti10-Jul-08 2:00
srikanthyenuganti10-Jul-08 2:00 
GeneralRe: setting config in win 32 pgm ................ Pin
Saurabh.Garg10-Jul-08 3:20
Saurabh.Garg10-Jul-08 3:20 
AnswerRe: setting config in win 32 pgm ................ Pin
SandipG 8-Jul-08 2:39
SandipG 8-Jul-08 2:39 
Questioncan any one slove this problem ............ Pin
srikanthyenuganti8-Jul-08 1:03
srikanthyenuganti8-Jul-08 1:03 
AnswerRe: can any one slove this problem ............ Pin
Yajnesh Narayan Behera8-Jul-08 3:18
Yajnesh Narayan Behera8-Jul-08 3:18 
GeneralRe: can any one slove this problem ............ Pin
srikanthyenuganti10-Jul-08 1:59
srikanthyenuganti10-Jul-08 1:59 
QuestionInter-Thread Communication Pin
Daniel Kanev7-Jul-08 23:58
Daniel Kanev7-Jul-08 23:58 
AnswerRe: Inter-Thread Communication Pin
CPallini8-Jul-08 0:11
mveCPallini8-Jul-08 0:11 
AnswerRe: Inter-Thread Communication Pin
killabyte8-Jul-08 0:14
killabyte8-Jul-08 0:14 
QuestionRe: Inter-Thread Communication Pin
killabyte8-Jul-08 13:16
killabyte8-Jul-08 13:16 
AnswerRe: Inter-Thread Communication Pin
Iain Clarke, Warrior Programmer9-Jul-08 0:09
Iain Clarke, Warrior Programmer9-Jul-08 0:09 
GeneralRe: Inter-Thread Communication Pin
killabyte9-Jul-08 2:45
killabyte9-Jul-08 2:45 
AnswerRe: Inter-Thread Communication Pin
Cedric Moonen8-Jul-08 0:40
Cedric Moonen8-Jul-08 0:40 
Questiondisplay source code while debugging Pin
George_George7-Jul-08 23:56
George_George7-Jul-08 23:56 
AnswerRe: display source code while debugging Pin
Stephen Hewitt8-Jul-08 15:01
Stephen Hewitt8-Jul-08 15:01 
GeneralRe: display source code while debugging Pin
George_George8-Jul-08 15:44
George_George8-Jul-08 15:44 

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.