- 513 名前:511 mailto:sage [2007/02/21(水) 18:33:41 ]
- >>512
ありがとうございます。 でも分からないことだらけで死にそうです…。 ビルダーだったら簡単なのに…。とりあえず以下のように拡張しました。 // フォント情報生成 CString fontName = dlg.GetFaceName(); int fontSize = dlg.GetSize()/10; COLORREF fontColor = dlg.GetColor(); // BOLD と ITALIC int fontStyle = 0; if(dlg.IsBold() ) fontStyle += (int)FontStyle::Bold; if(dlg.IsItalic()) fontStyle += (int)FontStyle::Italic; // セット textBox1->Font = new System::Drawing::Font(fontName, fontSize, (FontStyle)fontStyle); なお new を gcnew にすると error C2065: 'gcnew' : 定義されていない識別子です。 とエラーが出ます。 これは何故なのでしょうか?
|

|