Click here to Skip to main content
16,004,969 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Spy++ - like app Pin
Roger Allen20-May-03 5:43
Roger Allen20-May-03 5:43 
GeneralCHtmlView::OnBeforeNavigate2 problem Pin
rrrado19-May-03 5:26
rrrado19-May-03 5:26 
GeneralRe: CHtmlView::OnBeforeNavigate2 problem Pin
Brian Shifrin19-May-03 7:29
Brian Shifrin19-May-03 7:29 
GeneralRe: CHtmlView::OnBeforeNavigate2 problem Pin
rrrado19-May-03 22:22
rrrado19-May-03 22:22 
GeneralRe: CHtmlView::OnBeforeNavigate2 problem Pin
Brian Shifrin20-May-03 0:24
Brian Shifrin20-May-03 0:24 
GeneralRe: CHtmlView::OnBeforeNavigate2 problem Pin
svsrikanth20-May-03 2:00
svsrikanth20-May-03 2:00 
GeneralResourceless Dialogbox Pin
S van Leent19-May-03 5:02
S van Leent19-May-03 5:02 
GeneralRe: Resourceless Dialogbox Pin
Jeremy Falcon19-May-03 5:19
professionalJeremy Falcon19-May-03 5:19 
S van Leent wrote:
Is there a standard window class which I can use to accomplish this task?

No, you have to create your own. The closest thing to this is using a standard/common style bit when creating your own class.

Here's a typical one. And, hInstance should be the same value that's passed to your WinMain() procedure.

TCHAR szClassName[] = _T("Pick Something Unique"); // main window's class name
WNDCLASS wc;                                       // window's class struct

...

// first we must specify the attribs for the window's class
wc.style         = CS_DBLCLKS|CS_HREDRAW|CS_VREDRAW;// style bits
wc.lpfnWndProc   = (WNDPROC)WndProc;                // window procedure to use
wc.cbClsExtra    = 0;                               // no extra data
wc.cbWndExtra    = 0;                               // no extra data
wc.hInstance     = hInstance;                       // associated instance
wc.hIcon         = LoadIcon(NULL, IDI_APPLICATION); // large/small icon
wc.hCursor       = LoadCursor(NULL, IDC_ARROW);     // default cursor
wc.hbrBackground = (HBRUSH)(COLOR_3DFACE+1);        // window background color
wc.lpszMenuName  = MAKEINTRESOURCE(IDR_MAINFRAME);  // load the main menu
wc.lpszClassName = szClassName;                     // class name

// now, we can register this class
RegisterClass(&wc);

...

// use our class to try and create a window
hWnd = CreateWindow(szClassName,        // class to use
                    _T("Hey"),          // title for window
                    WS_OVERLAPPEDWINDOW,// style bits
                    100, 100,           // position (x, y)
                    200, 200,           // width/height
                    NULL,               // no parent
                    NULL,               // no menu
                    hInstance,          // associated instance
                    NULL);              // no extra data


Jeremy Falcon
GeneralRe: Resourceless Dialogbox Pin
S van Leent19-May-03 6:49
S van Leent19-May-03 6:49 
GeneralRe: Resourceless Dialogbox Pin
Jeremy Falcon19-May-03 7:00
professionalJeremy Falcon19-May-03 7:00 
GeneralRe: Resourceless Dialogbox Pin
S van Leent20-May-03 3:14
S van Leent20-May-03 3:14 
GeneralRichedit control font problem Pin
electronicman_x19-May-03 4:44
electronicman_x19-May-03 4:44 
GeneralRe: Richedit control font problem Pin
Beer19-May-03 8:51
Beer19-May-03 8:51 
GeneralRe: Richedit control font problem Pin
electronicman_x19-May-03 10:18
electronicman_x19-May-03 10:18 
GeneralRe: Richedit control font problem Pin
Beer19-May-03 10:19
Beer19-May-03 10:19 
GeneralRe: Richedit control font problem Pin
jhaga19-May-03 9:15
professionaljhaga19-May-03 9:15 
GeneralRe: Richedit control font problem Pin
Beer19-May-03 9:46
Beer19-May-03 9:46 
GeneralRe: Richedit control font problem Pin
jhaga19-May-03 11:18
professionaljhaga19-May-03 11:18 
GeneralDLLs dependences Pin
Anonymous19-May-03 4:35
Anonymous19-May-03 4:35 
GeneralRe: DLLs dependences Pin
Jeremy Falcon19-May-03 4:58
professionalJeremy Falcon19-May-03 4:58 
Generalvertical rebar Pin
edele19-May-03 4:33
edele19-May-03 4:33 
GeneralOnSize method Pin
Florin Ochiana19-May-03 4:25
Florin Ochiana19-May-03 4:25 
GeneralRe: OnSize method Pin
Martyn Pearson19-May-03 5:21
Martyn Pearson19-May-03 5:21 
Generalvector troubles Pin
aguest19-May-03 4:24
aguest19-May-03 4:24 
GeneralRe: vector troubles Pin
valikac19-May-03 5:43
valikac19-May-03 5: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.