Click here to Skip to main content
16,012,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get yesterdays day using MFC Classes like CTime,COleDateTIme Pin
sarathymail31-Aug-03 20:16
sarathymail31-Aug-03 20:16 
AnswerRe: How to get yesterdays day using MFC Classes like CTime,COleDateTIme Pin
Terry O'Nolley31-Aug-03 20:44
Terry O'Nolley31-Aug-03 20:44 
AnswerRe: How to get yesterdays day using MFC Classes like CTime,COleDateTIme Pin
PJ Arends31-Aug-03 21:14
professionalPJ Arends31-Aug-03 21:14 
GeneralRe: How to get yesterdays day using MFC Classes like CTime,COleDateTIme Pin
Terry O'Nolley31-Aug-03 21:20
Terry O'Nolley31-Aug-03 21:20 
GeneralRe: How to get yesterdays day using MFC Classes like CTime,COleDateTIme Pin
PJ Arends31-Aug-03 21:26
professionalPJ Arends31-Aug-03 21:26 
GeneralRe: How to get yesterdays day using MFC Classes like CTime,COleDateTIme Pin
sarathymail1-Sep-03 1:46
sarathymail1-Sep-03 1:46 
AnswerRe: How to get yesterdays day using MFC Classes like CTime,COleDateTIme Pin
YaronNir1-Sep-03 1:15
YaronNir1-Sep-03 1:15 
Questionhow to add tab control to tree view? Pin
ben231-Aug-03 19:19
ben231-Aug-03 19:19 
Hi,

I'm trying to add a tabcontrol to a treeview the followig way: But I don't see any tab in the treeview, just the tree control is there.
Where am I wrong?
Please advise.


void CTreeTestView::OnInitialUpdate()
{

CTreeView::OnInitialUpdate();
CTreeCtrl& tree = GetTreeCtrl();

CRect rct = CRect(1, 10, 100, 0);

cMyTabCtrl.Create(TCS_TABS | TCS_FIXEDWIDTH | WS_CHILD | WS_VISIBLE,
rct, this, 0x1098);
TC_ITEM tcItem;
tcItem.mask = TCIF_TEXT;
PSTR pszTabItems = "hello";

tcItem.pszText = pszTabItems;
tcItem.cchTextMax = strlen(pszTabItems);

cMyTabCtrl.InsertItem(0,&tcItem);
cMyTabCtrl.SetCurSel(0);


tree.DeleteAllItems();
if (!bXMLTreeCreated)
{
m_ImageList.Create(IDB_BITMAP1, 13, 4, RGB( 255, 255, 255 ));
tree.SetImageList( &m_ImageList, TVSIL_NORMAL );
bXMLTreeCreated = true;
}
hierarchy newNode = hierarchy("Root", "", "", "$Root$", "", false, false, "", 0 );
m_pFormView->cSharedData.HNode [iHierarchyNodeCount++] = newNode;

HTREEITEM hItem = tree.InsertItem( "Root", 4,5,TVI_ROOT );
tree.SelectItem (hItem);
tree.SetItemState(hItem, TVIS_BOLD, TVIS_BOLD );


for (int iCount = 0 ; iCount <15 ; iCount++)
OnPopupInserta();




// TODO: You may populate your TreeView with items by directly accessing
// its tree control through a call to GetTreeCtrl().
}
AnswerRe: how to add tab control to tree view? Pin
ben231-Aug-03 19:57
ben231-Aug-03 19:57 
Generaloptimizd C code Pin
devvvy31-Aug-03 18:57
devvvy31-Aug-03 18:57 
GeneralRe: optimizd C code Pin
Michael Dunn31-Aug-03 19:27
sitebuilderMichael Dunn31-Aug-03 19:27 
GeneralRe: optimizd C code Pin
Joaquín M López Muñoz1-Sep-03 3:13
Joaquín M López Muñoz1-Sep-03 3:13 
GeneralRe: optimizd C code Pin
devvvy1-Sep-03 6:28
devvvy1-Sep-03 6:28 
GeneralRe: optimizd C code Pin
Gary R. Wheeler1-Sep-03 4:46
Gary R. Wheeler1-Sep-03 4:46 
GeneralLaunching program from resources Pin
Ricky Koh31-Aug-03 18:57
Ricky Koh31-Aug-03 18:57 
Generalsampling another apps pixels Pin
7stud31-Aug-03 17:56
7stud31-Aug-03 17:56 
Generalmillisecond time Pin
devvvy31-Aug-03 16:57
devvvy31-Aug-03 16:57 
GeneralRe: millisecond time Pin
PJ Arends31-Aug-03 18:03
professionalPJ Arends31-Aug-03 18:03 
GeneralRe: millisecond time Pin
DougW4831-Aug-03 18:31
DougW4831-Aug-03 18:31 
GeneralRe: millisecond time Pin
Gary R. Wheeler1-Sep-03 4:52
Gary R. Wheeler1-Sep-03 4:52 
GeneralRe: millisecond time Pin
devvvy1-Sep-03 6:40
devvvy1-Sep-03 6:40 
QuestionHow to program just like winamp to make multi dialog attach to each other? Pin
allenhu31-Aug-03 15:18
allenhu31-Aug-03 15:18 
AnswerRe: How to program just like winamp to make multi dialog attach to each other? Pin
devvvy1-Sep-03 6:39
devvvy1-Sep-03 6:39 
Generalrecvfrom returns SOCKET_ERROR but WSAGetLastError returns 0 Pin
CND31-Aug-03 12:32
CND31-Aug-03 12:32 
QuestionAny way to view the contents of an ms word file? Pin
DanYELL31-Aug-03 12:26
DanYELL31-Aug-03 12:26 

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.