Click here to Skip to main content
15,891,698 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionclear image on screen vc++6.0 ????? Pin
aa_zz16-Dec-09 21:14
aa_zz16-Dec-09 21:14 
AnswerRe: clear image on screen vc++6.0 ????? Pin
Richard MacCutchan16-Dec-09 22:34
mveRichard MacCutchan16-Dec-09 22:34 
AnswerRe: clear image on screen vc++6.0 ????? Pin
vasu_sri18-Dec-09 1:30
vasu_sri18-Dec-09 1:30 
GeneralRe: clear image on screen vc++6.0 ????? Pin
aa_zz20-Dec-09 17:55
aa_zz20-Dec-09 17:55 
QuestionVC++ CListbox taking keyborad inputs Pin
Sakhalean16-Dec-09 20:25
Sakhalean16-Dec-09 20:25 
AnswerRe: VC++ CListbox taking keyborad inputs Pin
Code-o-mat16-Dec-09 20:42
Code-o-mat16-Dec-09 20:42 
GeneralRe: VC++ CListbox taking keyborad inputs Pin
Sakhalean17-Dec-09 0:24
Sakhalean17-Dec-09 0:24 
QuestionWindow has no title... conflicting window styles? Pin
Sauce!16-Dec-09 20:18
Sauce!16-Dec-09 20:18 
I'm creating a window using the following:

WNDCLASSEX wndClass;
	wndClass.cbClsExtra = NULL;
	wndClass.cbSize = sizeof(WNDCLASSEX);
	wndClass.cbWndExtra = NULL;
	wndClass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
	wndClass.hCursor = LoadCursor(NULL, IDC_ARROW);
	wndClass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
	wndClass.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
	wndClass.hInstance = mHInst;
	wndClass.lpfnWndProc = &Window::msgRouter;
	wndClass.lpszClassName = mWindowClassName.c_str();
	wndClass.lpszMenuName = NULL;
	wndClass.style = CS_CLASSDC;

RegisterClassEx(&wndClass);

mHWnd = CreateWindowEx(0, mWindowClassName.c_str(), mTitle.c_str(), WS_CAPTION | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_SYSMENU | WS_VISIBLE, 
		CW_USEDEFAULT, CW_USEDEFAULT, 800, 600, NULL, NULL, mHInst, this);


Which creates the following window:

Clicky[^]

Now the problem is, at the call to CreateWindowEx(), mWindowClassName.c_str() returns "Default Window Class", and mTitle.c_str() returns ‡"My window" - yet the window is still created without any title. I'm guessing this is probably due to a conflicting set of window style flags, but I can't for the life of me get it to work, regardless of what combination of flags I use. What else could be causing this to happen?
AnswerRe: Window has no title... conflicting window styles? Pin
Code-o-mat16-Dec-09 20:35
Code-o-mat16-Dec-09 20:35 
GeneralRe: Window has no title... conflicting window styles? Pin
Sauce!16-Dec-09 20:49
Sauce!16-Dec-09 20:49 
GeneralRe: Window has no title... conflicting window styles? Pin
Code-o-mat16-Dec-09 20:55
Code-o-mat16-Dec-09 20:55 
GeneralRe: Window has no title... conflicting window styles? Pin
Sauce!16-Dec-09 21:34
Sauce!16-Dec-09 21:34 
GeneralRe: Window has no title... conflicting window styles? Pin
Code-o-mat16-Dec-09 21:50
Code-o-mat16-Dec-09 21:50 
GeneralRe: Window has no title... conflicting window styles? Pin
Sauce!17-Dec-09 0:44
Sauce!17-Dec-09 0:44 
GeneralRe: Window has no title... conflicting window styles? Pin
David Crow17-Dec-09 2:30
David Crow17-Dec-09 2:30 
GeneralRe: Window has no title... conflicting window styles? Pin
Sauce!17-Dec-09 2:57
Sauce!17-Dec-09 2:57 
GeneralRe: Window has no title... conflicting window styles? Pin
Sauce!17-Dec-09 3:54
Sauce!17-Dec-09 3:54 
GeneralRe: Window has no title... conflicting window styles? Pin
Code-o-mat17-Dec-09 8:33
Code-o-mat17-Dec-09 8:33 
QuestionUdp broadcast failed in vista Pin
ganesh.dp16-Dec-09 20:04
ganesh.dp16-Dec-09 20:04 
AnswerRe: Udp broadcast failed in vista Pin
KarstenK16-Dec-09 21:09
mveKarstenK16-Dec-09 21:09 
GeneralRe: Udp broadcast failed in vista Pin
ganesh.dp16-Dec-09 22:31
ganesh.dp16-Dec-09 22:31 
GeneralRe: Udp broadcast failed in vista Pin
KarstenK16-Dec-09 22:35
mveKarstenK16-Dec-09 22:35 
Questionerror PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue Pin
itkid16-Dec-09 18:27
itkid16-Dec-09 18:27 
AnswerRe: error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue [modified] Pin
22491716-Dec-09 18:33
22491716-Dec-09 18:33 
GeneralRe: error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue Pin
itkid16-Dec-09 19:02
itkid16-Dec-09 19:02 

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.