|
whenever i use goback() and goforward();i get empty dialogbox when i complete navigation.
|
|
|
|
|
Web Crawler or Web Spider Books
I am looking for any books on writing web crawlers or web spiders and maybe someone knows the difference between the 2. If you know of any good books please let me know also if possible I am looking for books with c++. Thanks for your time.
|
|
|
|
|
how to navigate bakward and forward in a webbrowser control.
|
|
|
|
|
|
how can I use "switch" statement in mfc applications, spcially in the toolbars, where the user can press
one toolbar->circle icon->draw circle. user can repeat or select new retangle/shape
same toolbar->rectangle icon->draw recnagle. user can repeat or select new circle/shape
same toolbar->particualr shape icon->draw that shape. user can repeat or select new retangle/circle
e.g.
switch(toolbar){
case(circle)
{
//draw it}
case (retangle)
{
//draw it
}
case(paricular shape)
[
//draw it
}
}
thanks
shanila
|
|
|
|
|
I would use the class wizard to generate indiviual handlers for the buttons pressd on the tool bar:
OnCirclePressed() {...;} OnRectanglePressed() {...;}.
If you want to pass it on to another function to handle the command in switch statement then create something like this:
void CMyWnd::DrawShape(UINT ctrlID)
{
.....
switch(ctrlID)
{
case IDCIRCLE:
break;
case IDRECTANGLE:
break;
case IDPACULARSHAPE:
break;
}
}
Trust in the code Luke. Yea right!
|
|
|
|
|
1. MFC dialog app is created
2. 2nd modeless dialog is created with extended style WS_EX_APPWINDOW, it's then shown and updated. The parent is set to null or desktop with SetParent(NULL) or SetParent(GetDesktopWindow())
3. Main dialog window is minimized, and as it is, the taskbar space for the non-modal disappears and the non-modal dialog is also minimized
4. NO, i repeat NO messages at all are sent to the non-modal dialog such as you would expect (ex. WM_SIZE message).
My Question is simple, what the heck is going on? How does one stop MFC from stealing the non-modal dialog's messages and reducing it automatically and removing it's taskbar space?
So far no one has been able to answer this
hey
|
|
|
|
|
Hi,
I have a MFC application that contains a recursive function. After going in approx 4500 - 4900 levels deep the application crashes without an error. It just disappears from the screen. I am assuming that the recursion is going so deep that it is killing the stack.
Is there a way to check for this and return before the stack overflows?
Here is my code.
void CMyAppDlg::DoWork(int i)
{
if(i == 4900)
return;
DoWork(i+1);
}
void CMyAppDlg::OnButton1(int i)
{
AfxMessageBox("Starting work!");
DoWork(0);
AfxMessageBox("Done working!");
}
I can probably implement my method without recursion (its a tree parse) but I'd like to know if there is a solution to this. Any help will be appreciated.
Cheers,
Rahul
http://www.cs.cmu.edu/~kingtiny
|
|
|
|
|
|
Michael Imamura wrote:
Note that _resetstkoflw(): is only available in VC7. You can still use the __try block of course.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
Don't do that!
I do not know of any way to check the stack, but I am not supprised your code would overflow it. You realy do need to implement your method without recursion.
Trust in the code Luke. Yea right!
|
|
|
|
|
Hiya just wondering how I can make a pie chart in MFC??
Can't seem to find a class that I can use. Using Visual C++.NET.
Thanks,
grahamoj.
|
|
|
|
|
One solution is to do your own drawing. Otherwise, looking at CodeProject and CodeGuru.
Kuphryn
|
|
|
|
|
CDC::Pie()
Look it up in MSDN, it includes a small example.
Trust in the code Luke. Yea right!
|
|
|
|
|
yes or not, why?
includeh10
|
|
|
|
|
Hi,
In a dialog box a have a RichEditCtrl. I put a link in this richeditctrl like this.
CHARFORMAT2 userFont;
userFont.dwEffects = CFE_LINK;
descText->SetSel(0,descText->GetWindowTextLength());
descText->SetSelectionCharFormat(userFont);
descText->ReplaceSel("Click here");
How can I trap the click on that link? I've tried with
ON_NOTIFY(NM_CLICK,IDC_COMMAND,DoOnLink)
[IDC_COMMAND is the id of the RichEditCtrl]
but it doesn't execute the DoOnLink function.
Any ideas?
Thanks
-----
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
|
|
|
|
|
|
Hello there,
I am trying to build a custom button in win32 c++ and trying to utilize the WM_MOUSEHOVER message in the Window Procedure. But when i try to compile the code it says WM_MOUSEHOVER is undeclared and TRACKMOUSEEVENT is missing!!! I have not defined WIN32_LEAN_AND_MEAN or any such thing. I am using VC++ 6.0 Pro. Please help me out and thankx in advance.
-Tareq
|
|
|
|
|
I guess you need to download the latest Platform SDK. My old MSDN Library (from 2000) doesn't know the message as well, but it works with the latest Platform SDK nonetheless.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I think youre right. I have tried the same code with the new mingw compiler and it works like a charm. but the only problem is debugging so i guess i have to work with it until i complete downloading the platform sdk (300MB+) on my dialup line . Thankx man.
-Tareq
|
|
|
|
|
Hi.
I'm having problems using WS_EX_NOACTIVE flag for my CreateWindowEx.
I have this line:
MessageWindow = CreateWindowEx (WS_EX_NOACTIVATE| WS_EX_APPWINDOW,"MainWindow",......)
But I get an error:
'WS_EX_NOACTIVATE' : undeclared identifier
WS_EX_APPWINDOW is known, but not WS_EX_NOACTIVETE.
Is it just me or is this a bug?
I'm using VC6.0
Thanks alot
|
|
|
|
|
See my post above. Download the latest Platform SDK, it should work then
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
How to disable an initial selection in CEdit?
The CEdit control is only control in dialog and it's appears to be selected every time dialog is created. I don't need this.
Of course I can use SetSel but is there any smater way to do that?
|
|
|
|
|
Disable the control's default property in resource editor.
Kuphryn
|
|
|
|
|