Click here to Skip to main content
15,910,277 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL:: list Pin
Nemanja Trifunovic16-Mar-04 5:36
Nemanja Trifunovic16-Mar-04 5:36 
GeneralRe: STL:: list Pin
Jörgen Sigvardsson16-Mar-04 13:22
Jörgen Sigvardsson16-Mar-04 13:22 
GeneralRe: STL:: list Pin
vikramlinux16-Mar-04 17:19
vikramlinux16-Mar-04 17:19 
GeneralRe: STL:: list Pin
Todd Smith17-Mar-04 6:46
Todd Smith17-Mar-04 6:46 
GeneralRe: STL:: list Pin
Jörgen Sigvardsson17-Mar-04 6:53
Jörgen Sigvardsson17-Mar-04 6:53 
GeneralRe: STL:: list Pin
Jörgen Sigvardsson17-Mar-04 6:59
Jörgen Sigvardsson17-Mar-04 6:59 
GeneralRe: STL:: list Pin
Todd Smith17-Mar-04 13:03
Todd Smith17-Mar-04 13:03 
GeneralComposite Control, SetWindowPos being ignored Pin
gldnrtvr15-Mar-04 7:19
gldnrtvr15-Mar-04 7:19 
I am writing a custom-draw TreeView/ListView hybrid control similar to the one found in "A custom-drawn TreeList Control 18 Mar 2000 by Gerolf Kuehnel", found elsewhere on this site.

I am having relatively good success, except that while the custom-draw TreeView is scrolling quite well, the Header Control that is added in the OnInitDialog is not receiving the WM_WINDOWPOSCHANGING and other various messages, thus it does not scroll.

I used Spy++ to look at the messages received by Mr. Kuehnel’s project and my ATL control, and the Header control window in my control doesn’t receive any of the messages that I am sending (tried both to use a WTL CHeaderControl, as well as a CContainedWindow). I presume I’m missing something in my message map, or incorrectly creating the header control. The header generated messages are working fine (e.g. HDN_ENDTRACK). Although I am doing the exact same operation as Mr. Kuehnel, The messages aren't reaching their target.

Below is my Message Map for the composite control:

BEGIN_MSG_MAP(CTreeListViewCtrl)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
MESSAGE_HANDLER(WM_SIZE, OnSize)
MESSAGE_HANDLER(WM_HSCROLL, OnHScroll)
NOTIFY_HANDLER(IDC_TREE,NM_CUSTOMDRAW,OnCustomdrawTree)
NOTIFY_HANDLER(IDC_TREE,TVN_DELETEITEM,OnDeleteTree)
NOTIFY_HANDLER(IDC_HEADER,HDN_ENDTRACK,OnEndTrackHandler)
CHAIN_MSG_MAP(CComCompositeControl<ctreelistviewctrl>)
DEFAULT_REFLECTION_HANDLER()
END_MSG_MAP()

This is where the item is created in OnInitDialog.

m_Header.Attach(
::CreateWindow(WC_HEADER,"", WS_CHILD|WS_VISIBLE|WS_BORDER|HDS_HORZ, 0,0,r.right - r.left,0,m_hWnd ,(HMENU)IDC_HEADER, hInst,NULL));

Can anyone give me an idea why this is happening?


Mark D Henning
ITT Industries
mark.henning@ITT.com
mdh@gldnrtvr.com
QuestionWhat does the error mean?? Pin
Prakash Nadar14-Mar-04 20:18
Prakash Nadar14-Mar-04 20:18 
AnswerRe: What does the error mean?? Pin
Michael Dunn15-Mar-04 4:17
sitebuilderMichael Dunn15-Mar-04 4:17 
GeneralRe: What does the error mean?? Pin
Prakash Nadar15-Mar-04 5:01
Prakash Nadar15-Mar-04 5:01 
GeneralWhere am i being downloaded from ?..... Pin
Monty214-Mar-04 18:18
Monty214-Mar-04 18:18 
GeneralRe: Where am i being downloaded from ?..... Pin
Michael Dunn15-Mar-04 4:24
sitebuilderMichael Dunn15-Mar-04 4:24 
GeneralATL, problem with RGS file, shell extension Pin
zilch14-Mar-04 13:19
zilch14-Mar-04 13:19 
Generalsome newbie questions.... Pin
rozbeh13-Mar-04 1:53
rozbeh13-Mar-04 1:53 
GeneralRe: some newbie questions.... Pin
Michael Dunn13-Mar-04 4:52
sitebuilderMichael Dunn13-Mar-04 4:52 
QuestionCan XML be used in a wtl project? Pin
freehawk12-Mar-04 20:46
freehawk12-Mar-04 20:46 
AnswerRe: Can XML be used in a wtl project? Pin
Prakash Nadar12-Mar-04 23:00
Prakash Nadar12-Mar-04 23:00 
QuestionWhat is the possible reason? Pin
freehawk10-Mar-04 22:55
freehawk10-Mar-04 22:55 
QuestionHow to insert/delete some content of text file fastly? Pin
freehawk10-Mar-04 20:23
freehawk10-Mar-04 20:23 
GeneralNewbie activex question Pin
Martin Walker10-Mar-04 3:19
Martin Walker10-Mar-04 3:19 
GeneralService problem. Pin
Prakash Nadar9-Mar-04 17:18
Prakash Nadar9-Mar-04 17:18 
QuestionHow to implement a MFC CFormView in WTL? Pin
Aizz9-Mar-04 14:59
Aizz9-Mar-04 14:59 
AnswerRe: How to implement a MFC CFormView in WTL? Pin
_Magnus_9-Mar-04 21:43
_Magnus_9-Mar-04 21:43 
GeneralRe: How to implement a MFC CFormView in WTL? Pin
Aizz10-Mar-04 16:05
Aizz10-Mar-04 16:05 

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.