ab.com コミュニティ

ActiveBasicを通したコミュニケーション
現在時刻 - 2024年4月28日(日) 07:41

全ての表示時間は UTC+09:00 です




新しいトピックを投稿する  トピックへ返信する  [ 7 件の記事 ] 
作成者 メッセージ
投稿記事Posted: 2005年10月06日(木) 12:15 
"api_richedit.sbp"(全バージョン)の「CHARFORMAT2構造体」のサイズ指定のメンバ名が間違っています。
誤)
cdSize

正)
cbSize


通報する
ページトップ
   
 記事の件名:
投稿記事Posted: 2005年10月06日(木) 15:25 
オフライン
Site Admin

登録日時: 2005年5月30日(月) 15:08
記事: 535
ご報告ありがとうございます。
次回のバージョンアップで修正します。


通報する
ページトップ
投稿記事Posted: 2005年10月06日(木) 15:44 
"api_richedit.sbp"(全バージョン)の「CHARFORMAT2構造体」の未使用部分にダミーが必要では?
コード:
Type CHARFORMAT2
	cbSize As DWord
	dwMask As DWord
	dwEffects As DWord
	yHeight As Long
	yOffset As Long
	crTextColor As DWord
	bCharSet As Byte
	bPitchAndFamily As Byte
	szFaceName[LF_FACESIZE-1] As Byte
	wWeight As Word
	sSpacing As Integer
	dummy As Word  <----- 未使用部分
	crBackColor As DWord
	lcid As DWord
	dwReserved As DWord
	sStyle As Integer
	wKerning As Word
	bUnderlineType As Byte
	bAnimation As Byte
	bRevAuthor As Byte
	bReserved1 As Byte
End Type



通報する
ページトップ
   
投稿記事Posted: 2005年10月07日(金) 16:44 
http://www.vbvbvb.com/jp/gtips/0451/gSe ... ormat.html
では、下記の様に、「フォントフェイスのサイズ」を2倍にして設定?
コード:
Type CHARFORMAT2
	cbSize As DWord
	dwMask As DWord
	dwEffects As DWord
	yHeight As Long
	yOffset As Long
	crTextColor As DWord
	bCharSet As Byte
	bPitchAndFamily As Byte
	szFaceName[LF_FACESIZE*2+1] As Byte  <---変更箇所
	wWeight As Word
	sSpacing As Integer
	crBackColor As DWord
	lcid As DWord
	dwReserved As DWord
	sStyle As Integer
	wKerning As Word
	bUnderlineType As Byte
	bAnimation As Byte
	bRevAuthor As Byte
	bReserved1 As Byte
End Type



通報する
ページトップ
   
投稿記事Posted: 2005年10月07日(金) 18:39 
オフライン

登録日時: 2005年5月31日(火) 17:59
記事: 899
お住まい: 東京都
> http://www.vbvbvb.com/jp/gtips/0451/gSe ... ormat.html
> szFaceName[LF_FACESIZE*2+1] As Byte <---変更箇所
これはVBがUnicodeを使っているからでしょう。
ABではELM(LF_FACESIZE)で問題ないはずです。


通報する
ページトップ
投稿記事Posted: 2005年10月07日(金) 22:53 
イグトランス様、ありがとう御座います。

> > szFaceName[LF_FACESIZE*2+1] As Byte <---変更箇所
> これはVBがUnicodeを使っているからでしょう。

誤)
szFaceName[LF_FACESIZE]-1] As Byte

正)
szFaceName[LF_FACESIZE+1] As Byte
コード:
Type CHARFORMAT2
    cbSize As DWord
    dwMask As DWord
    dwEffects As DWord
    yHeight As Long
    yOffset As Long
    crTextColor As DWord
    bCharSet As Byte
    bPitchAndFamily As Byte
    szFaceName[LF_FACESIZE+1] As Byte  <---変更箇所
    wWeight As Word
    sSpacing As Integer
    crBackColor As DWord
    lcid As DWord
    dwReserved As DWord
    sStyle As Integer
    wKerning As Word
    bUnderlineType As Byte
    bAnimation As Byte
    bRevAuthor As Byte
    bReserved1 As Byte
End Type



通報する
ページトップ
   
投稿記事Posted: 2005年10月28日(金) 20:24 
「CHARFORMAT2構造体」のszFaceNameメンバのサイズ指定がVer4.10.02(修正版)でも
szFaceName[LF_FACESIZE-1]になってますが、これで正しいのでしょうか?

wWeight(フォントの太さを指定)以降の設定が出来無いのですが、別の所に問題があるのでしょうか?

「2バイトのダミーを入れる」か「szFaceName[LF_FACESIZE+1] As Byte」 にすると出来るのですが。

これは、「プログラミング掲示板」で質問すべきでしょうが・・・
宜しくお願いします。

未定義の定数がありました。
Const CFE_AUTOBACKCOLOR = CFM_BACKCOLOR


通報する
ページトップ
   
期間内表示:  ソート  
新しいトピックを投稿する  トピックへ返信する  [ 7 件の記事 ] 

全ての表示時間は UTC+09:00 です


オンラインデータ

このフォーラムを閲覧中のユーザー: なし & ゲスト[13人]


トピック投稿:  可
返信投稿:  可
記事編集: 不可
記事削除: 不可
ファイル添付: 不可

検索:
ページ移動:  
Powered by phpBB® Forum Software © phpBB Limited
Japanese translation principally by ocean