Click here to Skip to main content
15,923,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What's wndTop? Pin
introcosmo25-Jan-12 1:34
introcosmo25-Jan-12 1:34 
GeneralCListCtrl question Pin
RK_200012-Sep-02 6:59
RK_200012-Sep-02 6:59 
GeneralRe: CListCtrl question Pin
Tomasz Sowinski12-Sep-02 7:37
Tomasz Sowinski12-Sep-02 7:37 
GeneralRe: CListCtrl question Pin
Michael Dunn12-Sep-02 18:21
sitebuilderMichael Dunn12-Sep-02 18:21 
GeneralMS Word in a Container Pin
Anonymous12-Sep-02 6:58
Anonymous12-Sep-02 6:58 
GeneralButtons in a CListCtrl Pin
MightyThor12-Sep-02 6:51
MightyThor12-Sep-02 6:51 
GeneralRe: Buttons in a CListCtrl Pin
Tomasz Sowinski12-Sep-02 7:44
Tomasz Sowinski12-Sep-02 7:44 
GeneralRe: Buttons in a CListCtrl Pin
MightyThor12-Sep-02 8:19
MightyThor12-Sep-02 8:19 
Yes, i want one column of the control to have buttons. Actually, my aim is to make the user insert rows and the button will be created at runtime. But i don't know how to create unique IDs at runtime and how to handle messages for the new buttons. This is a further step but if you have any suggestions on this problem too, i would love to hear it.

For placing button in list, i found a way like below:

Adding the following code in OnPaint or OnCreate function does it:

CRect itemRect;
GetSubItemRect( 0, 0, LVIR_LABEL, itemRect );

CTeamButton *buttonx = new CTeamButton;
buttonx->Create( "Test", WS_CHILD|WS_VISIBLE, itemRect, this, 12345 );


But it doesn't seem to be a solid and gentle way. For example, when you resize the columns the buttons' size doesn't change. It would get worse when sorting takes place. So i can't count on it. Is there any subtle way to achieve this?

Thanks.


GeneralRe: Buttons in a CListCtrl Pin
Tomasz Sowinski12-Sep-02 8:24
Tomasz Sowinski12-Sep-02 8:24 
GeneralRe: Buttons in a CListCtrl Pin
MightyThor12-Sep-02 9:06
MightyThor12-Sep-02 9:06 
Generalmini window Pin
Zizilamoroso12-Sep-02 6:25
Zizilamoroso12-Sep-02 6:25 
GeneralRe: mini window Pin
Zizilamoroso12-Sep-02 6:27
Zizilamoroso12-Sep-02 6:27 
Generalfinally dealing with 'new' Pin
ns12-Sep-02 6:19
ns12-Sep-02 6:19 
GeneralRe: finally dealing with 'new' Pin
Chris Losinger12-Sep-02 6:24
professionalChris Losinger12-Sep-02 6:24 
GeneralRe: finally dealing with 'new' Pin
Le centriste12-Sep-02 7:43
Le centriste12-Sep-02 7:43 
GeneralRe: finally dealing with 'new' Pin
Ravi Bhavnani12-Sep-02 10:32
professionalRavi Bhavnani12-Sep-02 10:32 
GeneralRe: finally dealing with 'new' Pin
Michael Dunn12-Sep-02 18:29
sitebuilderMichael Dunn12-Sep-02 18:29 
GeneralRe: finally dealing with 'new' Pin
ns17-Sep-02 3:19
ns17-Sep-02 3:19 
GeneralRe: finally dealing with 'new' Pin
Michael Dunn17-Sep-02 5:27
sitebuilderMichael Dunn17-Sep-02 5:27 
QuestionHow to insert a number of Icons into a project? Pin
chen12-Sep-02 5:47
chen12-Sep-02 5:47 
GeneralVisio 2000 Style Dockable windows Pin
Yaeli12-Sep-02 5:27
Yaeli12-Sep-02 5:27 
GeneralRe: Visio 2000 Style Dockable windows Pin
Anonymous12-Sep-02 5:44
Anonymous12-Sep-02 5:44 
GeneralStatistics Package Pin
David Day12-Sep-02 5:18
David Day12-Sep-02 5:18 
QuestionCan someone crack this problem? I can't... Pin
Tommy Svensson12-Sep-02 4:58
Tommy Svensson12-Sep-02 4:58 
AnswerRe: Can someone crack this problem? I can't... Pin
benjymous12-Sep-02 5:24
benjymous12-Sep-02 5:24 

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.