|
Why won't my CHtmlView object display HTML files correctly when they have tables with merged cells (colspan property)? Internet explorer shows these files OK.
What can I do?
|
|
|
|
|
Oops, I had a bug in my own code. It renders fine!
Andrew
|
|
|
|
|
Hi,
How can I get the font name and font size of the title bar?
Thank you.
- NS -
|
|
|
|
|
This has most probably to do with system fonts and themes. I would start and search in this direction
~RaGE();
|
|
|
|
|
|
Hi
If you mean CPropertySheet use
void PressButton(<br />
int nButton <br />
);
it Simulates the choice of the specified button in a property sheet.
nButton : Identifies the button to be pressed. This parameter can be one of the following values:
PSBTN_BACK Chooses the Back button.
PSBTN_NEXT Chooses the Next button.
PSBTN_FINISH Chooses the Finish button.
PSBTN_OK Chooses the OK button.
PSBTN_APPLYNOW Chooses the Apply Now button.
PSBTN_CANCEL Chooses the Cancel button.
PSBTN_HELP Chooses the Help button.
Iman Ghasrfakhri
|
|
|
|
|
In CPropertyPage, how can I call PressButton?
|
|
|
|
|
In your child class of CPropertyPage define a function to set its parent,then call PressButton of its parent you set
Iman Ghasrfakhri
|
|
|
|
|
I've tried, but CPropertySheet is not the parent of CPropertyPage.
|
|
|
|
|
Add a function to page, when you add the page to sheep ,set page's sheet yourself,
sheet.AddPage(page1);<br />
page1.setParentSeet(&sheet);
---------------------------------------
void CPage::setParentSeet(CProperiSheet *sheet)<br />
{<br />
m_ParentSheet = sheet;<br />
}
---------------------------------------
then every where in pages you have a pointer to sheet
isn't it ?
Iman Ghasrfakhri
|
|
|
|
|
|
Use
CPropertySheet *parent=(CPropertySheet*) GetParent();
parent->PressButton(IDOK);
In button handler.
Again for creating propertysheet i assumed you have used following code.
CPropertySheet prop;
CPage1 obj1;
CPage2 obj2;
prop.AddPage(&obj1)
prop.AddPage(&obj2)
|
|
|
|
|
I want the parent to be notified by a CListBox, when I left click the list box, but the program didn't enter the msg handler, so does CListCtrl. NM_* is not common notify?
|
|
|
|
|
Have you checked the "notify parent" checkbox in the resource editor properties of your controls ?
~RaGE();
|
|
|
|
|
I checked it.
btw, when its a report CListCtrl, NM_CLICK will be received.
|
|
|
|
|
How to create a bitmap file in a Visual C/C++ Program
thanx in advance
|
|
|
|
|
If you are referring to the creation of a bitmap file for the purpose of using it as a resource in VC++ project, then click on the Add Resource menu-item on the Project menu in the VS IDE. In the dialog box appearing on the screen, select Bitmap and then click on the New button. You'll have a blank bmp file material where you can draw / create your own bitmap.
Otherwise, you can also draw your bitmap file (with bmp extension) in some other software such as Paint and then import it using Import button in the aforesaid Add Resource dialog box.
Regards,
Ashok Dhamija
_____________________________
Padam Technologies
|
|
|
|
|
If you are referring to the creation of a bitmap file for the purpose of using it as a resource in the VC++ project, then click on the Add Resource menu-item on the Project menu. A dialog box called Add Resource will appear on the screen. Select Bitmap and then click on the New button. You'll get a blank bitmap file drawing area from where you can draw your own bitmap file.
As an alternative, you can draw your own bitmap file using some standard drawing software such as Paint and save it as bmp file and then click on the Import button in the aforesaid Add Resource window to import the same.
Regards,
Ashok Dhamija
_____________________________
Padam Technologies
|
|
|
|
|
I like to convert program's output into a bitmap file using program
by
KK
|
|
|
|
|
Krishna Kumar N wrote:
program's output
What is output by your program ? Is text that you want to print into a bitmap ? or do you get a raw buffer that you want to convert into a bitmap ? Pls give more details, otherwise it is difficult to help...
~RaGE();
|
|
|
|
|
My programs output contains text & graphics. Output is already displayed in screen. I like to create a Bitmap file of the output, without using Screen Capture technic (Alt + Print Screen).
I used CDC for displaying programs output
pls help
thanx in advance
by
Krishna Kumar
Krishna Kumar N (Volks)
|
|
|
|
|
one of solutions, you use CBitmmap copy CDC to CBitmmap ==> Safe to file.
|
|
|
|
|
Try with CImage object.
Use BitBlt or StretchBlt to copy the displaying programs output between DCs.
Use CImage::Save to save on HD the image (bmp, jpg, gif ,...).
|
|
|
|
|
Dear all,
I'm using VC++6.0. In my application, I have a Rich Edit Control (CRichEditCtrl) in a dialog. How can I set background color of my Rich Edit Control the same to color of the dialog at run time
|
|
|
|
|
For setting BG color of the RichEdit, check this[^]
|
|
|
|