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

C / C++ / MFC

 
QuestionWindow has no title... conflicting window styles? Pin
Sauce!16-Dec-09 20:18
Sauce!16-Dec-09 20:18 
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 
With a few minor changes (to work in my environment), your code snippet worked fine for me.

LRESULT CALLBACK WndProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
{
    return DefWindowProc(hwnd, uMsg, wParam, lParam); 
}
  
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     = AfxGetInstanceHandle();
wndClass.lpfnWndProc   = WndProc;
wndClass.lpszClassName = "MyWndClass";
wndClass.lpszMenuName  = NULL;
wndClass.style         = CS_CLASSDC;
  
RegisterClassEx(&wndClass);
  
HWND mHWnd = CreateWindowEx(0, "MyWndClass", "MyTitle", 
                            WS_CAPTION | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_SYSMENU | WS_VISIBLE,
                            CW_USEDEFAULT, CW_USEDEFAULT, 800, 600, 
                            NULL, NULL, AfxGetInstanceHandle(), this);


"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


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 
GeneralRe: error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue Pin
22491716-Dec-09 19:13
22491716-Dec-09 19:13 
GeneralRe: error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue Pin
itkid16-Dec-09 19:31
itkid16-Dec-09 19:31 
GeneralRe: error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue Pin
itkid16-Dec-09 19:32
itkid16-Dec-09 19:32 
AnswerRe: error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." Issue Pin
KarstenK16-Dec-09 22:38
mveKarstenK16-Dec-09 22:38 
Questionreading writing to a file system Pin
hrishiS16-Dec-09 17:44
hrishiS16-Dec-09 17:44 
AnswerRe: reading writing to a file system Pin
Adam Roderick J16-Dec-09 17:56
Adam Roderick J16-Dec-09 17:56 
GeneralRe: reading writing to a file system [modified] Pin
hrishiS16-Dec-09 18:23
hrishiS16-Dec-09 18:23 

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.