Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to regain the lost database connection in MFC? Pin
SanjaySMK12-Feb-06 23:14
SanjaySMK12-Feb-06 23:14 
QuestionAdd .lib Pin
sunit512-Feb-06 23:11
sunit512-Feb-06 23:11 
AnswerRe: Add .lib Pin
toxcct12-Feb-06 23:21
toxcct12-Feb-06 23:21 
GeneralRe: Add .lib Pin
sunit513-Feb-06 0:21
sunit513-Feb-06 0:21 
AnswerRe: Add .lib Pin
ThatsAlok14-Feb-06 19:45
ThatsAlok14-Feb-06 19:45 
QuestionIs there a way to execute the internal command without showing the consol window? Pin
pc_dev12-Feb-06 23:00
pc_dev12-Feb-06 23:00 
AnswerRe: Is there a way to execute the internal command without showing the consol window? Pin
toxcct12-Feb-06 23:03
toxcct12-Feb-06 23:03 
AnswerRe: Is there a way to execute the internal command without showing the consol window? Pin
James Brown12-Feb-06 23:05
James Brown12-Feb-06 23:05 
AnswerRe: Is there a way to execute the internal command without showing the consol window? Pin
khan++12-Feb-06 23:34
khan++12-Feb-06 23:34 
AnswerRe: Is there a way to execute the internal command without showing the consol window? Pin
ThatsAlok14-Feb-06 19:41
ThatsAlok14-Feb-06 19:41 
Question'bad file number' error Pin
kittymew12-Feb-06 22:51
kittymew12-Feb-06 22:51 
AnswerRe: 'bad file number' error Pin
Cedric Moonen12-Feb-06 23:04
Cedric Moonen12-Feb-06 23:04 
QuestionRe: 'bad file number' error Pin
kittymew13-Feb-06 0:01
kittymew13-Feb-06 0:01 
AnswerRe: 'bad file number' error Pin
Cedric Moonen13-Feb-06 1:02
Cedric Moonen13-Feb-06 1:02 
GeneralRe: 'bad file number' error Pin
kittymew13-Feb-06 1:19
kittymew13-Feb-06 1:19 
QuestionCommon File Dialog Pin
Anil_vvs12-Feb-06 21:46
Anil_vvs12-Feb-06 21:46 
AnswerRe: Common File Dialog Pin
PJ Arends13-Feb-06 6:22
professionalPJ Arends13-Feb-06 6:22 
QuestionOnSelchangedTree On MainFrame Pin
HMNham12-Feb-06 21:44
HMNham12-Feb-06 21:44 
QuestionOnSelchangedTree On MainFrame Pin
HMNham12-Feb-06 21:43
HMNham12-Feb-06 21:43 
in my project, i splite Window into view Ctreeview and CView:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if (!m_wndSplitter.CreateStatic(this, 1, 2))
return FALSE;
CRect rect;
GetClientRect(&rect);
int mWidth=rect.Width();
if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CTreeView), CSize(mWidth/4, 0), NULL))
{
m_wndSplitter.DestroyWindow();
return FALSE;
}
if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CPropertyView), CSize(0, 0), NULL))
{
m_wndSplitter.DestroyWindow();
return FALSE;
}
return TRUE;
}

but i can't use functions of the tree Example:

void CMainFrame::OnTreeSelChange(NMHDR *pNMHDR, LRESULT* pResult)
{
LPNMTREEVIEW pTV = (LPNMTREEVIEW)pNMHDR;
AfxMessageBox(L"OnSelchangedTree ");
*pResult=0;
}

please! help me.

AnswerRe: OnSelchangedTree On MainFrame Pin
_anil_12-Feb-06 23:16
_anil_12-Feb-06 23:16 
QuestionError SHGetFolderPath Pin
sunit512-Feb-06 20:50
sunit512-Feb-06 20:50 
AnswerRe: Error SHGetFolderPath Pin
Owner drawn12-Feb-06 21:06
Owner drawn12-Feb-06 21:06 
GeneralRe: Error SHGetFolderPath Pin
sunit512-Feb-06 21:53
sunit512-Feb-06 21:53 
GeneralRe: Error SHGetFolderPath Pin
Owner drawn12-Feb-06 21:57
Owner drawn12-Feb-06 21:57 
GeneralRe: Error SHGetFolderPath Pin
sunit512-Feb-06 22:07
sunit512-Feb-06 22:07 

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.