Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCString to TCHAR Pin
satcat11-Feb-04 9:50
satcat11-Feb-04 9:50 
GeneralRe: CString to TCHAR Pin
David Crow11-Feb-04 10:29
David Crow11-Feb-04 10:29 
GeneralRe: CString to TCHAR Pin
Orkun GEDiK11-Feb-04 10:33
Orkun GEDiK11-Feb-04 10:33 
GeneralRe: CString to TCHAR Pin
satcat11-Feb-04 11:58
satcat11-Feb-04 11:58 
GeneralRe: CString to TCHAR Pin
John M. Drescher11-Feb-04 17:06
John M. Drescher11-Feb-04 17:06 
GeneralCListCtrl Item Search Efficiency :: MFC Pin
valikac11-Feb-04 8:55
valikac11-Feb-04 8:55 
GeneralCreate own window styles Pin
BrockVnm11-Feb-04 8:17
BrockVnm11-Feb-04 8:17 
GeneralRe: Create own window styles Pin
Antti Keskinen11-Feb-04 8:52
Antti Keskinen11-Feb-04 8:52 
Mm..

No, I don't think that you can override the default type flags. Basically, the window style flags determine both how the window is painted and how it behaves. This having said, you can override the WM_PAINT function in order to paint your window in any way you can imagine.

Providing different functionality of the window is all about writing custom handlers for different messages the window receives. For example, the sizing box is drawn around the window, it's client area is reduced, and then a hit test is made if the cursor is over the sizing area. The window flags enable you to gain some basic functionality provided by Windows, but again, I don't think you can create your own flags.

This is because if you created new flags, you'd need to hack the Win32 API to determine what these style flags mean. Of course, if you derived an MFC CWnd, you could create custom window flags for your own windows that determine certain painting and/or behaviour styles. But this is not about creating new styles, more like extending the already available ones.

It's difficult to answer your question, but perhaps my ramblings shed some light on the issue Smile | :)

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Create own window styles Pin
BrockVnm11-Feb-04 9:08
BrockVnm11-Feb-04 9:08 
GeneralMemory leak while traversing through HTML frames Pin
Member 85966411-Feb-04 7:55
Member 85966411-Feb-04 7:55 
GeneralRe: Memory leak while traversing through HTML frames Pin
Peter Weyzen11-Feb-04 8:14
Peter Weyzen11-Feb-04 8:14 
GeneralLocallizing to Hebrew Pin
LukeV11-Feb-04 7:01
LukeV11-Feb-04 7:01 
GeneralRe: Locallizing to Hebrew Pin
Peter Weyzen11-Feb-04 7:31
Peter Weyzen11-Feb-04 7:31 
GeneralRe: Locallizing to Hebrew Pin
LukeV11-Feb-04 7:47
LukeV11-Feb-04 7:47 
GeneralRe: Locallizing to Hebrew Pin
Peter Weyzen11-Feb-04 7:52
Peter Weyzen11-Feb-04 7:52 
GeneralRe: Locallizing to Hebrew Pin
LukeV11-Feb-04 8:29
LukeV11-Feb-04 8:29 
GeneralRe: Locallizing to Hebrew Pin
Anonymous11-Feb-04 11:58
Anonymous11-Feb-04 11:58 
GeneralRe: Locallizing to Hebrew Pin
LukeV11-Feb-04 12:19
LukeV11-Feb-04 12:19 
GeneralRe: Locallizing to Hebrew Pin
Anonymous11-Feb-04 14:03
Anonymous11-Feb-04 14:03 
GeneralRe: Locallizing to Hebrew Pin
LukeV11-Feb-04 13:05
LukeV11-Feb-04 13:05 
GeneralOutlook Programming - User-Defined Fields Pin
Christian Zellner11-Feb-04 6:46
Christian Zellner11-Feb-04 6:46 
GeneralCDBConnection->m_pErrorInfo Pin
Chris Ulliott11-Feb-04 6:38
Chris Ulliott11-Feb-04 6:38 
GeneralFlickering at resizing on MFC app Pin
JimmyChu11-Feb-04 6:33
JimmyChu11-Feb-04 6:33 
GeneralRe: Flickering at resizing on MFC app Pin
Anonymous11-Feb-04 6:51
Anonymous11-Feb-04 6:51 
GeneralRe: Flickering at resizing on MFC app Pin
Roger Allen11-Feb-04 6:52
Roger Allen11-Feb-04 6:52 

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.