|
I haven't been using WTL before but have recently been finding more and more stuff that made me interested... But with all this new .net stuff, is there any real point in learning this or should I just wait until the release of .net and then learn the new microsoft way?
/XTSea
|
|
|
|
|
I'm trying to control an existing instance of Internet Explorer with DDE.
For example, I can change the URL, or close an existing window, but what i can't do is to retrieve the current URL.
A very small doc in msdn says that you must connect to the DEE service IExplore, with the topic name WWW_GetWindowInfo, and the item name WWW_GetWindowInfo. And it says that both an Execute or a Request should work. But it doesn't seem to work.
Can somebody send me an example of code to achieve what i said?
oh, btw, i'm not using MFC, and i'm using the DDEML library.
Gabriel Soubies, student in France
gabries.soubies@supelec.fr
|
|
|
|
|
Hi,
I successfully crea the .chm file. But i want GUI like MSDN help.
Like two panes, on clicking an item in the left pane should give its contents on
right pane.
Thanks,
- Koteswara
|
|
|
|
|
If you fire up HTML Help Workshop, and open your project, click on the 'Project' tab and then on the 'Window' icon (the third one down I think). Now fill in / edit the options to suit your needs. You will want to use the 'Navigation Pane' tab and chek the box that says somrthing like 'show navigation pane'.
Now hit recompile and you should see what you want.
|
|
|
|
|
Hello,
I'm using throughout my application the macros __FILE__ and __LINE__ to write the position of some code into a log file. Now the (probably quite stupid) question. Why does this not work on the client side. I get NULL and 0 where __FILE__ and __LINE__ should appear in my log file.
What am I missing?
Best wishes,
Matthias Steinbart
|
|
|
|
|
I have developped a drawing application like AUTOCAD.Using this application a user can draw a lot of shapes and save the picture to the disk.My application supports drawing area more than the client area.So my application supports scrolling to see all the objects in the drawing area.So I need a mechanism by which I can draw objects greater than the client area.ie,while drawing an object by dragging I must be able to scroll the view so that I can draw the object to any part of the draw area with out being limitted to the client area.
|
|
|
|
|
How do I remove the focus on a focused item in a MFC TreeCtrl? I've tried the SetItemState but the flag TVIS_FOCUSED is not implemented and can not be used.
Suggestions?
/Jens
|
|
|
|
|
I'm currently writing a FTP-client and I would like to implement a class which resumes downloads if they're broken. So what I need is an example of this (hopefully mfc...) or some links where I can get more info about this.
/XTSea
|
|
|
|
|
Hi,
I want to prepare one compiled HTML file.
Looks like MSDN help etc (it should contain one left pane, and right pane,
on clicking on any item in left pane, the related html file come into right pane).
Ex: MSDN help
How to do this?
Any one has an idea, tell me some APIs or related ideas to solve this problem.
thanks in advance,
Perumalla Koteswara Rao.
---------------------------------------------------------------------
Genius is one percent inspiration and ninety-nine percent
perspiration. --Thomas Alva Edison
|
|
|
|
|
Hi Koteswara,
You need to use the "HTML Help WorkShop", this is a freeware program from Microsoft, it includes an API to hook up the help to your program. Read the following article at codeguru to get started "Starting with HTML Help" by Joep Oude Veldhuis.
http://codeguru.earthweb.com/help/html_help.shtml
In the article there is a link to download the program.
Best regards
Jose
|
|
|
|
|
I mean that I need something like a CScrollView which make much of the work for scrolling with code ready to go (and also I need zoom capability, but this is easier to do). Unfortunately it is not possible to have a CScrollView created in a dialog because the class is to much linked with doc and so on. So actually I need a kindof simple and ideal CScrollZoomWnd.
I have tried to put a CSplitter with CView inside my dialog since there are some good examples on www.codetools.com. But I found that it is not possible to have a CSplitter object with only one row and one column. The programm crashes.
Other ideas ?
Thanks
Pierre
|
|
|
|
|
Why don't U try the above splitterwnd with 2 rows and 1 column and give the size of the second pane as CSize(0,0)???
|
|
|
|
|
Hi All,
I'm new to MFC and am trying to write a dialog-based application which accesses an ODBC database. Multiple dialogs are involved and I can't figure out how to access the same CRecordSet object from each dialog class. Any help would be greatly appreciated.
|
|
|
|
|
One way to do this would be to change the constructor of each of your CDialog derived classes so that you can pass in a pointer to your CRecordset object.
|
|
|
|
|
Hi Everyone,
I'm using Visual C++6 and I'm wondering if there is a code that allows me to call up the OPEN AND SAVE dialog boxes. (i.e when you want to open an existing document in Words, a dialog pop up.)
How do I write codes for those dialog boxes for OPEN, SAVE, AND SAVE AS??? And how do I Use those dialog boxes to save things inside my application?? Do I have to connect the dialog box to the application?? PLMK. THANKS AGAIN!
Steve
|
|
|
|
|
Read up on the GetOpenFileName() and GetSaveFileName() APIs. If you're using MFC, look at CFileDialog .
|
|
|
|
|
What is the best method of preventing the download of certain elements of a web page (ie .gif, .jpg, .mpeg). I'm sure it's relativly simple, but I'm not too up to date on COM so it gets very confusing trying to go thru the documentation and the samples are not too helpful. Any thoughts would be appreciated.
|
|
|
|
|
I need a MFC class implementing a scrollable window inside a dialog. Any idea ?
|
|
|
|
|
Even a CWnd could be OK... It depends on what you want to do with that window!
If you are more specific you get more specific answers
|
|
|
|
|
I have MSVC++ 5.0 I want a RELIABLE method of detecting the number of buttons a mouse has within my program (inclusive of the Intellimouse Explorer), that will work under Windows 95/98/2000 and NT! I already know the following:
1.)Win32 will always report 2 mouse buttons no matter what type of mouse is connected to the system.
2.)Attempting to use the following code:
if ((hMouse = GetModuleHandle ("MOUSE")) != NULL)
lpfnInquire = (LPFNINQUIRE) GetProcAddress( hMouse, "Inquire" );
This technique will only work if MOUSE.EXE is specified as being loaded under the WIN.INI file! (Most people don't do this anyway, at least under 95. And I don't want to mess up other people's systems by writing to the WIN.INI!)
3.)I DO NOT want to have a list of every possible mouse type that can be connected to the system! (hoplessly dating my program!)
There should be a way (short of writing my own mouse driver) that I can detect the mouse driver and obtain this (number of buttons) information. What is it?
|
|
|
|
|
Where did you get the info that the OS always returns 2 buttons? Both GetNumberOfConsoleMouseButtons() and GetSystemMetrics() return 5 for my IM Explorer me on 2K.
|
|
|
|
|
Still in need of an answer! Will not work under Windows 95!!! (I know, I tried BOTH, and both give the same answer (2 buttons))! The app I am designing is to be a mouse/keyboard remapper, and is to be TSR (so I can't play tricks like capturing the mouse in a screen and disecting the packet structure!) Need help please! I've wasted a week already on this problem!
|
|
|
|
|
How to find no of comm ports available in the system? (apart reading from the registry)
thanks in advance.
|
|
|
|
|
2 questions
1) I have a Rich edit control in a dialog box. I add text to the end through a CString. I want to keep the scroll position it the bottom of the text. Whenever you call UpdateData (FALSE); it springs back to the top of the text. I've had a look at the setscrollpos, etc (that are in CWnd), but they are not very effective.
2) In the rich edit control i want to have different colours, but since the user does not enter text directly i use updatedata and all formatting is lost (and all text goes to the last setting used). Anyway around this?
thanks
|
|
|
|
|
for question #1
Have you tried the LineScroll() member function ?
For example, after UpdateData(FALSE);
int nVis = m_edit1c.GetFirstVisibleLine();
int nscroll = m_edit1c.GetLineCount() - nVis;
m_edit1c.LineScroll(nscroll);
(assuming that you have a control variable,
m_edit1c, associated with the Rich edit control)
|
|
|
|