Click here to Skip to main content
15,900,725 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question0xC0000142 windows errors lookup Pin
Chesnokov Yuriy17-Dec-09 0:41
professionalChesnokov Yuriy17-Dec-09 0:41 
AnswerRe: 0xC0000142 windows errors lookup Pin
Sauce!17-Dec-09 0:46
Sauce!17-Dec-09 0:46 
AnswerRe: 0xC0000142 windows errors lookup Pin
KingsGambit17-Dec-09 0:48
KingsGambit17-Dec-09 0:48 
AnswerRe: 0xC0000142 windows errors lookup Pin
CPallini17-Dec-09 1:30
mveCPallini17-Dec-09 1:30 
QuestionHow to get the drive user friendly name from the drive letter? Pin
mutpan16-Dec-09 22:43
mutpan16-Dec-09 22:43 
AnswerRe: How to get the drive user friendly name from the drive letter? Pin
mutpan16-Dec-09 23:49
mutpan16-Dec-09 23:49 
QuestionWord Automation documentation Pin
Chandrasekharan P16-Dec-09 22:37
Chandrasekharan P16-Dec-09 22:37 
AnswerRe: Word Automation documentation Pin
Garth J Lancaster16-Dec-09 23:13
professionalGarth J Lancaster16-Dec-09 23:13 
AnswerRe: Word Automation documentation Pin
David Crow17-Dec-09 2:13
David Crow17-Dec-09 2:13 
QuestionCan I run .exe file such as explorer.exe or notepad.exe as child window of my CView? Pin
rambojanggoon16-Dec-09 21:17
rambojanggoon16-Dec-09 21:17 
AnswerRe: Can I run .exe file such as explorer.exe or notepad.exe as child window of my CView? Pin
Michael Schubert16-Dec-09 22:10
Michael Schubert16-Dec-09 22:10 
AnswerRe: Can I run .exe file such as explorer.exe or notepad.exe as child window of my CView? Pin
Richard MacCutchan16-Dec-09 22:30
mveRichard MacCutchan16-Dec-09 22:30 
AnswerRe: Can I run .exe file such as explorer.exe or notepad.exe as child window of my CView? Pin
KingsGambit16-Dec-09 23:02
KingsGambit16-Dec-09 23:02 
AnswerRe: Can I run .exe file such as explorer.exe or notepad.exe as child window of my CView? Pin
David Crow17-Dec-09 2:15
David Crow17-Dec-09 2:15 
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 

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.