|
No there would be so many other things like so many input dialogs etc ..
Can also explain what is WM_USER constant ? and can we some how use this ?
Abhishek Narula
"Learn to appreciate others ... World would appreciate you"
|
|
|
|
|
Abhishek Narula wrote:
No there would be so many other things like so many input dialogs etc ..
So you have to use EnumChildWindows/GetWindowLong to enumerate all existing children IDs. Calculate the max value, add 1, and use as start ID.
Abhishek Narula wrote:
Can also explain what is WM_USER constant ? and can we some how use this ?
No, WM_USER is not about control IDs. It's about messages.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
We like it this way: we can give bad advice and not be held accountable for it!!!!
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
|
Hi,
I need to extract generally the icon left of a menu-item text. Does anyone know how to take a screenshot from a menu-item?
Best regards,
Amar Bouchibane
|
|
|
|
|
Have you checked CP?There are lots of menu here.
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
You want to do this 'manually' - to paste the icon into your own project? Or maybe you want your program to capture these icons?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
The latter - I have to capture in a recording session every icon of a menu. The next step is to put every icon into a bitmap stripe.
Any ideas?
|
|
|
|
|
I'm bringing bad news, I'm afraid. The problem with menu icons displayed in popups is that they are implemented by owner-drawing the menus. This means that each application can do this in different fashion. There's no magic Get/SetMenuItemIcon API. Some apps don't even use menus at all - they just create windows looking like menus and are tracking the mouse to hilite the item cursor is hovering over.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Okay, thanks Tomasz! Never mind...
I think I capture a whole screenshot from my menus´ hWnd and rather extract the icon when my menu is open.
TIA!
|
|
|
|
|
As a possible of the wall solution for this (and I dont have any code to do this) you could try to hook system wide all WM_DRAWITEM looking for owner drawn menu's. After the correct procedures have been drawn you could then take a snap shot of the DC which should have an icon in it if the menu item has an icon.
It would be a tough problem, but I think it can be done.
Roger Allen
Sonork 100.10016
If I'm not breathing, I'm either dead or holding my breath.
A fool jabbers, while a wise man listens. But is he so wise to listen to the fool?
|
|
|
|
|
Hi all,
I've just moved to a new machine to test some things with XP, I've installed VS6, and MSDN Jan 2002. But when I press F1 I get the error message "The MSDN collection does not exist. Please reinstall MSDN.". Fair enough I think, so I go to Tools | Options | Help System, but I get the same message and there's no help systems in the drop down boxes.
Has anyone get any ideas how I can get my help system back??
Dylan Kenneally
London,UK
|
|
|
|
|
MSDN Jan 2002 doesn't support integration with VS6. You need to use October 2001. From Jan 2002 integration is only supported in VS.NET
Michael
|
|
|
|
|
Thanks very much Michael! Now where did I put that CD...
Dylan Kenneally
London,UK
|
|
|
|
|
You can use that CD sepratly from VC6
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Hi,
I'm not sure if this is part of DirectX, or if there's a standard set of code available - but how can I make something that does audio configuration? For example the latest Counter-Strike now supports voice (actually I think it's a Half-Life update) and you can test your microphone settings, etc... I've seen very similar functionality in other places as well such as Dragon NaturallySpeaking (a while ago).
Anyone have any ideas?
Thanks
Jedidja
|
|
|
|
|
Hi
i have 2 tables. my first CRecordView table displays the first table information. I have one button control on the first Dialog(CRecordView).
If i click the button i has to open one more dialog(which has combobox) and load the records from the second table. How i ll go for this? plz help me out. I am doing thru appwizard..
Thanks in advance
Saro
|
|
|
|
|
You can create dialog in your resource tab(you don't need to have CRecordView for it,regular dialog box is enough),then in OnInitDialog() of that dialog you can read table2 and add the item to combobox.
Have you got it or you need more?
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
1.
Does anybody has the FILE aclui.h ??
If you do, please send me the file!!
2.
The Interface IADsSecurityUtility for ADSI isn't implemented in iads.h and nowhere else! Does anybody know where i can find it???
|
|
|
|
|
hph wrote:
Does anybody has the FILE aclui.h ??
The file is part of the platform sdk, you'll need to have the sdk installed to get this file.
hph wrote:
The Interface IADsSecurityUtility for ADSI isn't implemented in iads.h and nowhere else! Does anybody know where i can find it???
The interface appears to be defined in the iads.h with the August 2001 platform sdk
Michael
|
|
|
|
|
Hello,
Does anybody know how to build a networked application in a SDI? I've got a good example on how to build the application using simple dialog(I've found it on "MFC programming with Visual C++ Unleashed"), but I want to build a networked application(using WINSOCK connection; CAsyncSocket class) using SDI or MDI.
The problem here are that I don't know whether the socket variable is belongs in the document or view class and how much of the application functionality belongs in which 2 classes.
Please help
|
|
|
|
|
Hi,
Probably your best best here is to use a CFormView-derived class for your view. This acts pretty much exactly like a dialog, so you'll be able to easily move your example code over.
As for Doc/View, I think the proper philosophy is that your persistent data (stuff that gets loaded and saved) goes in your document, and your view is the class that presents that data to the user. Thus, in MDI you can potentially have two views on the same document data.
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|
|
I have a function that has a return type of const char*, and the data inside the function is built up into a temporary std::string. I try returning "return temp.c_str();", but that doesnt seem to work the way it should. This is a simple problem, and I really dont want to allocate memory for a char* unless it is absolutely necessary, so is there a better way to handle this?
|
|
|
|
|
Data accessed via c_str() become sinvalid as soon as the temporary string goues out of scope. You need to maintain that string somewhere: declare it as a member of some object, or have it as a static variable in your .cpp file (this can pose problems is the string changes in every invokation.)
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thats what I figured.... I wanted to avoid having memory overhead, but I guess I will stick with it.
|
|
|
|