Click here to Skip to main content
15,908,254 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUDP broadcast again!! Pin
Rickard Andersson2017-May-02 12:34
Rickard Andersson2017-May-02 12:34 
GeneralCListView.. OnPaint().. Help! Pin
RobJones17-May-02 11:33
RobJones17-May-02 11:33 
GeneralRe: CListView.. OnPaint().. Help! Pin
Shog917-May-02 14:30
sitebuilderShog917-May-02 14:30 
GeneralSame problem :( Pin
17-May-02 14:42
suss17-May-02 14:42 
GeneralRe: Same problem :( Pin
Shog917-May-02 15:52
sitebuilderShog917-May-02 15:52 
GeneralThanks! Pin
RobJones20-May-02 6:18
RobJones20-May-02 6:18 
GeneralMAPIAddress() and the default button Pin
Shog917-May-02 11:23
sitebuilderShog917-May-02 11:23 
GeneralCTreeCtrl issues Pin
dazinith17-May-02 10:33
dazinith17-May-02 10:33 
arg.. any help would be much appreciated..

i have a function called PopulateTree() which is supposed to remove all items currently in the tree, and repopulate it.

the problem is that everytime i call DeleteAllItems() and then add more items the new items never show up. ex:
m_tcReports.DeleteAllItems();
HTREEITEM hDoc = m_tcReports.InsertItem("wtf", NULL, TVI_SORT);


if i remove the DeleteAllItems() call then it will add the items everytime i call the function causing multiple copies of the same item.. but at least it adds the items.

is there something i have to do between DeleteAllItems() and adding a new item? ive tried Invalidate(), but that was to no avail..

also i've noticed that my message handler below always gets called 2 times in a row, any idea why?
ON_NOTIFY(DTN_DATETIMECHANGE, IDC_PERIODBEGIN, OnDtnDatetimechangePeriodbegin)

plz help this newbie out friendly ppl Smile | :) have a good weekend!

-dz
GeneralRe: CTreeCtrl issues Pin
Ravi Bhavnani17-May-02 11:06
professionalRavi Bhavnani17-May-02 11:06 
GeneralRe: CTreeCtrl issues Pin
dazinith20-May-02 3:59
dazinith20-May-02 3:59 
GeneralProblems with MNEMONICS !! Pin
Cris17-May-02 10:25
Cris17-May-02 10:25 
GeneralRe: Problems with MNEMONICS !! Pin
Ravi Bhavnani17-May-02 11:07
professionalRavi Bhavnani17-May-02 11:07 
GeneralRe: Problems with MNEMONICS !! Pin
Cris20-May-02 2:18
Cris20-May-02 2:18 
QuestionQT, anyone? Pin
Ravi Bhavnani17-May-02 9:45
professionalRavi Bhavnani17-May-02 9:45 
QuestionSetting an environment variable? Pin
Jamie Hale17-May-02 9:22
Jamie Hale17-May-02 9:22 
AnswerRe: Setting an environment variable? Pin
Jamie Hale17-May-02 9:25
Jamie Hale17-May-02 9:25 
GeneralStatus Bar height Pin
Stan the man17-May-02 8:38
Stan the man17-May-02 8:38 
GeneralRe: Status Bar height Pin
Mike.NET17-May-02 9:04
Mike.NET17-May-02 9:04 
QuestionHow to write for 32 bit color in VC++? Pin
17-May-02 8:25
suss17-May-02 8:25 
AnswerRe: How to write for 32 bit color in VC++? Pin
Paul M Watt17-May-02 8:44
mentorPaul M Watt17-May-02 8:44 
AnswerRe: How to write for 32 bit color in VC++? Pin
Chris Losinger17-May-02 8:56
professionalChris Losinger17-May-02 8:56 
AnswerRe: How to write for 32 bit color in VC++? Pin
Tim Smith17-May-02 9:03
Tim Smith17-May-02 9:03 
AnswerRe: How to write for 32 bit color in VC++? Pin
Tim Lesher17-May-02 9:29
Tim Lesher17-May-02 9:29 
GeneralRe: How to write for 32 bit color in VC++? Pin
Tim Smith17-May-02 9:31
Tim Smith17-May-02 9:31 
GeneralPrinting multiple HTML files Pin
BeavisInAz17-May-02 8:01
BeavisInAz17-May-02 8:01 

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.