|
Hi,
I would like to have the small help button (the one that appears in the upper right of a dialog if its context property is set to true) take the user to a page in my help file that is relevant to the dialog they working with. Is there any way that the default "turn into a question mark pointer" function can be overridden to acheive this??
Thanks in advance!
Is it football season yet???
|
|
|
|
|
I'm trying to display the contents of list box from a dialog box in print preview. I'm having trouble implementing this. Can some one point me in the right direction.
Thanks
|
|
|
|
|
for each item in the list, get the string and use CDC::TextOut to draw it to the print preview DC.
-c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
Is it OK to use it? When is the object actually destroyed?
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
Is it OK to use it?
Yes, though it is not common.
When is the object actually destroyed?
At the very moment delete this is executed. This has an important implication, namely that after this line the member function can no longer reference the object or any of its members.
The most common use of this idiom is for cleaning up modeless dialog boxes in PostNcDestroy .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Michel Prévost wrote:
Is it OK to use it?
Yes.
Michel Prévost wrote:
When is the object actually destroyed?
When the delete statement is executed. When did you think it would happen
It's an idiom used commonly in reference counting situations. The dtor is usually protected, or private, so that users cant delete the object themselves and therefore the object decides when it's time to die.
If you see a line that says 'delete this' then be concerned if you see any access to an object's variables after that line and before the end of the function...
Len Holgate
www.jetbyte.com
The right code, right now.
|
|
|
|
|
Hi All!
I have an Access database in which I have a list. Since I don't have Access on my computer I can still load the list into a C++ app and view the list through a CListView, for example.
Now, I want to print this list CListView doesn't do a good job because I have no control on the formatting (title, sub-title, etc). I could create an html from the data and use CHtmlView... but if you print a long html list the html view doesn't repeat the column headers on each page for example. I could create a report in Access but it costs a lot (Crystal Reports is also costly)!!!
Does someone have a solution to this?!? I want pretty printing with images at the top and column headers that get printed on each page!
Thanks for your time,
----------
Hyakugei
|
|
|
|
|
Why is it that sometimes when I type the control name and a dot I get a drop down with all the functions in the class and others (same control type) I get nothing.
How can I get this to work for all function?
Thanks
|
|
|
|
|
i think it's because VC's autocompletion stuff is broken - sometimes it works, sometimes it doesn't. i recently installed VisualAssist (www.wholetomato.com) because it has a more-reliable system than the built-in stuff.
-c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
Hello,
Usually when a user types something in to a combo box and leaves it (e.g., types TAB), the combo box will translate whatever was typed into something in the drop-down list.
Which windows message to I use to get the value of the combo box's edit area AFTER this translation has been done? I tried using the KillFocus Windows message, but the subsequent UpdateData(TRUE) fills the member variable with what the user typed, not the combo box's tranlation.
Any ideas? Thanks!
JennyP
|
|
|
|
|
Maybe overriding CBN_SELCHANGE ?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Where did you learn how to code Winsock, or in MFC CSocket. I would like to learn how, but I don't know where to start. Any pointers to where I should look?!?!?!
Thanks
-Ken Mazaika
|
|
|
|
|
Warreng Young's Winsock Programmer's FAQ is a valuable resource, and includes some links to tutorials.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
see " visual c++ menu bar: Ctoolbar, CDialogBar, or others? " below, i answer ur question there.
cheers
includeh10
|
|
|
|
|
1 search google + buy books
2 write code
3 goto 1
Len Holgate
www.jetbyte.com
The right code, right now.
|
|
|
|
|
Hi,
How to change the font for a CStatic control and others (CListBox, CEdit, etc.) on a dialog based application ?
I tried this with a CStatic control in the OnInitDialog event:
CFont font;
font.CreatePointFont (72, _T ("Arial"));
GetDlgItem(IDC_STATIC)->SetFont(&font);
but it didn't work.
Thanks
|
|
|
|
|
The problem is that font gets destroyed when the function where it was declared exits. Store it as a member variable of your dialog instead and things will work (hopefully).
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi, I would like to learning Thread Process, Synchronize datas between multi Thread processing.
I would like to buy a book for beginner with schematic or finding some sample very explicite for understanding this.
Best Regards
youssef
|
|
|
|
|
cope all of vc samples from vc disk, then do a search about functon: CreateThread, u will find a lots u need.
here is first place to go before spending ur unlimited dollars
cheers
includeh10
|
|
|
|
|
Best recommendation is the "the" book about system programming: Jeffrey Richter, "Programming Applications for Microsoft Windows", ISBN: 1572319968.
This book covers all about threads, processes, synchronisation, memory management, DLLs and much more. It does this a pure API-centric way (no MFC, ATL or similar stuff) in C/C++.
--
Daniel Lohmann
http://www.losoft.de
|
|
|
|
|
Check out 'Win32 Multithreaded Programming' by Cohen & Woodring, available on O'Reilly press. It covers both Win32 API and MFC methods, and takes you from the very basics of threading right through to the most complex stuff; it's well presented and easy to follow too.
Dylan Kenneally
London, UK
|
|
|
|
|
Hi.
I have a propertysheet with a multiple propertypages. I would like get two functions working.
1) enable/disable default buttons (IDOK, IDCANCEL, ID_APPLY_NOW) in the propertypage.
2) be notified when the user navigate to and from different propertypage. If possible set the active propertypage programmically.
Okay. I believe this is the way to enable/disable the default buttons of a propertysheet from within the propertysheet.
-----
// disable the OK button
GetDlgItem(IDOK)->EnableWindow(FALSE);
-----
However, the code above does not work from within a propertypage. Is there a way to accomplish the above without sending a message to main frame?
I have no idea on what message to catch as the user navigates to and from propertypages.
Thanks,
Kuphryn
|
|
|
|
|
I guess this should work:
GetParent()->GetDlgItem(IDOK)->EnableWindow(FALSE);
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
|
i need to create a menu similar to visual c++ menu: can drop buttons on it and more.
i am sure vc menu bar is not common menu, but i don't know what exactly it is: based on CToolBar, CDialogBar or others, and how to implement it.
do u have sample or idea?
thx
includeh10
|
|
|
|