|
Ravi Bhavnani wrote:
VC6 is definitely my favorite IDE.
same here
$0.02.
Software | Cleek
|
|
|
|
|
I can't tell you how bummed I am about having to move to VC7. Turns out the rest of the product (which is non-GUI) is upgrading their compiler, hence the requirement to standardize.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
dito.
but you get used to VC7.1 pretty quick
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi, I'm another one still using VC++ 5.0 and yes, the online help does not work since installing XP SP2. Can you please elaborate what sort of fiddling is required to make the online help/docu work again ?
Thanks,
Siggy
[Update: Continued looking for anything on the web and found the solution here: http://blog.kalmbachnet.de/?postid=14 ]
|
|
|
|
|
|
Hey
At the moment i'm trying to create an image processing application using MFC (MDI, Doc/View). One of its features is displaying the (pixel) coordinates in the status bar. I managed to handle that by implementing OnMouseMove of the CView class and directly writing to the correct status bar pane, but currently it has 2 flaws. The first one is when the mouse moves out of the client area of the active view, the status bar reports the last updated position. The other is that when you pass the mouse over an inactive view it updates the coordinates for that inactive view. I want to clear the mouse position pane i have created in the status bar when the 2 events described above arise.
I should think this could be solved easily, but i haven't found a solid answer. Can anybody give me some pointers?
Thanks.
|
|
|
|
|
|
For the second point, your view could update the status bar pane when it has the focus only, that is when (GetFocus() == this) (this being the view, of course).
Fold With Us!
"For every complex problem there is an answer that is clear, simple, and wrong" - H.L. Mencken
|
|
|
|
|
Hey
Thanks for the reply. Checking the focus does work, i haven't looked at TrackMouseEvent yet.
greetings Joris
|
|
|
|
|
I have used VC++ MFC for a while but I have never used with Graph ... because I have never seen a toolbar Control which using Graph!
I think there is a way, anyone can show me briefly how to use it?
1. Which toolbar Control I should use?
2. Let say I would like to draw from x1,y1 to x2,y2 ... what draw I should use?
3. To represent a PIE chart or a PolyGraph, what should I use?
Many thanks
|
|
|
|
|
|
Hi All,
I' m writing a Visual C++ MFC dialog-based program. I tried to show and hide the title bar of a modal dialog dynamically but didn't succeed? Could anyone kindly helps me? Thanks!
Cheers,
Jack
|
|
|
|
|
Try using this member function of the dialog
<br />
ModifyStyle(WS_CAPTION,0);<br />
::SetWindowPos(m_hWnd,HWND_TOP,0,0,cx,cy,SWP_SHOWWINDOW);<br />
to get it back:
<br />
ModifyStyle(0,WS_CAPTION);<br />
::SetWindowPos(m_hWnd,HWND_TOP,0,0,cx,cy,SWP_SHOWWINDOW);<br />
good luck my friend
k_dehairy
|
|
|
|
|
Thanks for your help, k_dehariy!
Meanwhile, how can I set the caption of the title bar dynamically?
|
|
|
|
|
|
I would like to embed a simple streaming audio player similiar to LaunchCast Radio in an application. Where should I start? There are so many different types of methods that I am unsure of the cost/benefits of the different interfaces.
Can someone give me a breakdown of what I would do to start playing a stream from a site?
Languages would be C++/MFC for initial implementation, then later on a new client in C#.
.............................
There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life.
Fiat justitia, et ruat cælum
|
|
|
|
|
You should definitely check out Bass[^]. (The site is currently temporarily unreachable, but keep trying).
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I have an application that uses anonymous pipes to communicate with the child process which is altogether a separate application. I was using anonymous pipes in this context but the problem is with the blocking read which leads to the GUI hang. I want to use the same anonymous pipe with Non-blocking read. In unix i was able to do this with select system call but in windows this API seems to be socket specific. Please help.
|
|
|
|
|
How do I create a DSN programmatically?
thanx
|
|
|
|
|
Use SQLConfigDataSource() .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
How do i make a combo box non-editable
|
|
|
|
|
Go into the properties of your combobox -> 'style' Tab and select 'DropList' in the 'Type' combo.
|
|
|
|
|
Hi all.
Got a little Problem...
I have 4 Views (CFormView) with a TreeCtrl in it..
now i moved the tree into a Splitterwindow (created by CChildFrame).
Wehn User selects a DataView from the Menu I call OpenDocumentFile() whitch
call's afer ObCreateClient() where I switch between the View's...
Question :
How I get Access from CLeftView to the CChildFrame to change the View (wndSplitter->CreateView() or call funtions whitch Show Data within the CFormView ??
Thx. for Help !!!
|
|
|
|
|
Got it by myself after spending hours...
Hier the code I used to get rid of it.... hope it helps someone...
BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext)
{
// Unterteiltes Fenster erstellen
if (!m_wndSplitter.CreateStatic(this, 1, 2))
return FALSE;
// create a new left pane !!
if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CLeftView), CSize(200, 200), pContext))
{
AfxMessageBox("Failed to create Client Frame Window!");
m_wndSplitter.DestroyWindow();
return FALSE;
}
CString m_Classname = pContext->m_pNewViewClass->m_lpszClassName;
// AfxMessageBox(m_Classname);
// selct the view
if (m_Classname == "CFrmAdressen")
{
// AfxMessageBox("Class ist CFrmAdressen");
if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CFrmAdressen), CSize(200, 200), pContext))
{
m_wndSplitter.DestroyWindow();
return FALSE;
}
return TRUE;
}
if (m_Classname == "CFrmArtikel")
{
if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CFrmArtikel), CSize(200, 200), pContext))
{
m_wndSplitter.DestroyWindow();
return FALSE;
}
return TRUE;
}
if (m_Classname == "CFrmAuftrag")
{
if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CFrmAuftrag), CSize(200, 200), pContext))
{
m_wndSplitter.DestroyWindow();
return FALSE;
}
return TRUE;
}
if (m_Classname == "CFrmInfoBox")
{
if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CFrmInfoBox), CSize(200, 200), pContext))
{
m_wndSplitter.DestroyWindow();
return FALSE;
}
return TRUE;
}
}
Leftview Treehandling :
void CLeftView::OnTvnSelchanged(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMTREEVIEW pNMTreeView = reinterpret_cast<lpnmtreeview>(pNMHDR);
CChildFrame *m_Child = ((CChildFrame*)GetParentFrame()->GetActiveFrame());
CWnd *p_Wnd = m_Child->m_wndSplitter.GetPane(0,1);
if (m_Child->GetRuntimeClass() == RUNTIME_CLASS(CFrmInfoBox))
{
CFrmInfoBox* m_Info = DYNAMIC_DOWNCAST(CFrmInfoBox, p_Wnd);
m_Info->OnTvnSelchangedTree1(pNMHDR, pResult);
}
}
*pResult = 0;
}
So I can Display and change view as before... but without using Tree in the FormView...
After I just a add a function to update the tree as I need...
C'ya
|
|
|
|
|
i have made a program using VC++ 7.0 MFC
and i included in my package all the MFC Dlls
and this program is running under windows XP
but when i try to open it from windows 98
a message error occurs telling me that
"C++ library runtime error"
does any one know how to solve this problem
|
|
|
|