Click here to Skip to main content
16,006,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCFtpConnection::Command() - Last attempt before madness :) Pin
carrie21-Aug-02 23:50
carrie21-Aug-02 23:50 
GeneralRe: CFtpConnection::Command() - Last attempt before madness :) Pin
Arjan Schouten22-Aug-02 3:05
Arjan Schouten22-Aug-02 3:05 
GeneralRe: CFtpConnection::Command() - Last attempt before madness :) Pin
carrie22-Aug-02 12:25
carrie22-Aug-02 12:25 
GeneralProblems importing DLL extension Classes Pin
Anonymous21-Aug-02 23:31
Anonymous21-Aug-02 23:31 
GeneralRe: Problems importing DLL extension Classes Pin
Brian Azzopardi22-Aug-02 0:18
Brian Azzopardi22-Aug-02 0:18 
GeneralRe: Problems importing DLL extension Classes Pin
Anonymous23-Aug-02 1:56
Anonymous23-Aug-02 1:56 
Generalowner drawn controls Pin
nss21-Aug-02 23:30
nss21-Aug-02 23:30 
GeneralRe: owner drawn controls Pin
Maciej Pirog22-Aug-02 0:48
Maciej Pirog22-Aug-02 0:48 
Ordinary windows controls (text box, list box, list view, button, tree view, combo box, etc.) are not owner drawn. You just have to create it. When a dialog is repainted (it gets WM_PAINT message) Windows repaints controls. For exaxmple if you have a button, and the dailog was repainted, Windows draw it using GDI functions (DrawLine, DrawText, DrawRectangle, etc.)

If you want the button to look different, you can crete an owner drawn (not by Windows but by an owner!) button. You have to draw it by yourself, using GDI functions.

I will quote a part of MSDN article about Tab controls (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/CommCtls/Tab/Tab.asp):
Owner-Drawn Tabs
If a tab control has the TCS_OWNERDRAWFIXED style, the parent window must paint tabs by processing the WM_DRAWITEM message. The tab control sends this message whenever a tab needs to be painted. The lParam parameter specifies the address of a DRAWITEMSTRUCT structure, which contains the index of the tab, its bounding rectangle, and the device context (DC) in which to draw.

By default, the itemData member of DRAWITEMSTRUCT contains the value of the lParam member of the TCITEM structure. However, if you change the amount of application-defined data per tab, itemData contains the address of the data instead. You can change the amount of application-defined data per tab by using the TCM_SETITEMEXTRA message.

To specify the size of items in a tab control, the parent window must process the WM_MEASUREITEM message. Because all tabs in an owner-drawn tab control are the same size, this message is sent only once. There is no tab control style for owner-drawn tabs of varying size. You can also set the width and height of tabs by using the TCM_SETITEMSIZE message.



Ñ There is only one MP Ð

GeneralRe: owner drawn controls Pin
Anonymous22-Aug-02 3:22
Anonymous22-Aug-02 3:22 
Questioncan any body tell Pin
imran_rafique21-Aug-02 22:41
imran_rafique21-Aug-02 22:41 
AnswerRe: can any body tell Pin
Maciej Pirog22-Aug-02 0:27
Maciej Pirog22-Aug-02 0:27 
GeneralRe: can any body tell Pin
Maciej Pirog22-Aug-02 0:29
Maciej Pirog22-Aug-02 0:29 
AnswerRe: can any body tell Pin
Stephane Rodriguez.22-Aug-02 1:46
Stephane Rodriguez.22-Aug-02 1:46 
Generalchange wait cursor to own created animated cursor Pin
f.o.b21-Aug-02 21:54
f.o.b21-Aug-02 21:54 
GeneralRe: change wait cursor to own created animated cursor Pin
Jon Hulatt22-Aug-02 4:03
Jon Hulatt22-Aug-02 4:03 
Generalwhere DWORD_PTR and LONG_PTR is defined. Pin
sonshiro21-Aug-02 21:41
sonshiro21-Aug-02 21:41 
GeneralRe: where DWORD_PTR and LONG_PTR is defined. Pin
567890123421-Aug-02 22:44
567890123421-Aug-02 22:44 
GeneralProperties Window Appears at Runtime Pin
Daed21-Aug-02 21:22
Daed21-Aug-02 21:22 
Generalcontext menu screenshot Pin
bryce21-Aug-02 17:40
bryce21-Aug-02 17:40 
GeneralRe: context menu screenshot Pin
bryce21-Aug-02 18:48
bryce21-Aug-02 18:48 
GeneralRe: context menu screenshot Pin
Michael Dunn21-Aug-02 19:36
sitebuilderMichael Dunn21-Aug-02 19:36 
GeneralRe: context menu screenshot Pin
Shog922-Aug-02 10:52
sitebuilderShog922-Aug-02 10:52 
GeneralRe: context menu screenshot Pin
Mukkie22-Aug-02 6:06
Mukkie22-Aug-02 6:06 
Generalnewbie in game dev Pin
devvvy21-Aug-02 17:31
devvvy21-Aug-02 17:31 
GeneralRe: newbie in game dev Pin
benjymous21-Aug-02 22:43
benjymous21-Aug-02 22: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.