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

C / C++ / MFC

 
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 
AnswerRe: how to add tab control to tree view? Pin
ben231-Aug-03 19:57
ben231-Aug-03 19:57 
Hi,

The follwoing code adds the tab control. but, how can i position it so that it is always at the bottom of the tree view and how can set size of tree control in the tree view so that it doesn't overlap with tab control?

static bool bXMLTreeCreated = false; //this bool is used to make sure image list is added only once
iAttributeNodeCount = 0; //Count of Attribute Nodes, even if deleted not decreased
iHierarchyNodeCount = 0; //Count of Hierarchy Nodes, even if deleted not decreased, not changed if Hierarchy appears twice
uniqueHierarchyCount = 0;
m_pFormView->mapsCount = 0;
m_pFormView->domNodeCount = 0;
lastSelectedItem = NULL;
CTreeView::OnInitialUpdate();

CRect rct = CRect(20,390,280,430);
cMyTabCtrl.Create(TCS_TABS | WS_CHILD | WS_VISIBLE, rct, this, 0x1098);
TC_ITEM tcItem [2];
PSTR pszTabItems [2] = {"Hierarchy", "Device Groups"};
for (int iCount =0 ; iCount <2 ; iCount++)
{
tcItem[iCount].mask = TCIF_TEXT;
tcItem[iCount].pszText = pszTabItems[iCount];
tcItem[iCount].cchTextMax = strlen(pszTabItems[iCount]);
cMyTabCtrl.InsertItem(0,&tcItem[iCount]);
}
cMyTabCtrl.SetCurSel(0);
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 
AnswerRe: Any way to view the contents of an ms word file? Pin
Joey Bloggs31-Aug-03 14:18
Joey Bloggs31-Aug-03 14:18 

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.