Can some please explain me the reason why values added in combobox are shown in hexa in the ".rc" i.e. the resource file while strings/caption associated it with other controls like Button, EditBox have ASCI values.
I wanted to get Color of a Dialog and set it to a toolbar. I am able to get the color of dialog.
a) How can I get color of other controls.
b) Is there some generic way where I can get background color of control. c) What if the color is gradient.
d) and wat about if it has bitmap as its background.
One other thing,
e) How can then I set a background color of a toolbar, to be more specific.
I have achieved to change bg color of static label but I am, not able to do it with toolbar. Any help ?
I wanted to get Color of a Dialog and set it a toolbar. I am able to get the color of dialog. How can I get color of other controls. Is there some generic way where I can get background color of control. What if the color is gradient. and wat about if it has bitmap as its background.
One other thing, How can then I set a background color of a toolbar, to be more specific. I have achieved to change bg color of static label but I am, not able to do it with toolbar. Any help ?
I usually develop 'ActiveX controls' using "MFC ActiveX Wizard". In the past, i simply develop ActiveX control and distribute it along with the client side application.
This time i am in different situation. As usual, i developed a control and distribute it with my client application. But now i've enhanced the same control. I've added some new interfaces and not touched the previous interfaces. I came to know from somewhere that there is a method of proper versioning of ActiveX controls and COM components. And i am required to 'increase' the version of my activeX control before distributing it.
Can anyone tell me how to control the version of those 'ActiveX controls' which evolve with the passage of time. Also tell me the method to do so in MFC ActiveX controls.
I am upgrading my application to use V.C 7.1 compiler version. AT present it is using 6.0 compiler.
The problem i am facing is use of File stream.
My req is to share same open file with filebuff and fsrteam object
Please find the code snippet below
Compiler is not recognizing .fd()
Error is in this line int fdesc = v_AppFile.fd();
This question is related to MS-Word automation. I want to find some statistics related to the opened word document. I've already found two statistics like count of total words and count of total characters using various word-automation interfaces.
I found some statistics indirectly, for example i wanted to calculate total number of characters in Bold in my document. There is no such support directly provided in MS-Word and automation functions. However i used "Find Dialog Box" and WildCharacters property to get the total count of these characters.
So far so good. Now i want to find some other statistics but i am struggling to find out and i require your help. I want to find the total number of:
--Bullets in my document
--Fonts used in my document
--Font sizes used in my document
Can anyone tell me that how can i computee these values via directly using Word or by automation.
How Can I change the background color of a toolbar at runtime. Any idea, I have added a new button to CFileDialog Control, now I want to change its back color of the toolbar. Any help. Also How can I get the handle of the buttons in Toolbar ?
Hi, how can i draw an icon next to the edit control in a combo box? Ive successfully managed to draw a list icons in the listbox, but now i want to draw the icon that the user selected next to the text in the edit box.
Ive obtained the edit box by attaching to it in the OnCtlColor() message of the combo box.
Last Visit: 31-Dec-99 18:00 Last Update: 5-Oct-22 15:58