LoginSignup
0
0

More than 5 years have passed since last update.

MFCでダイアログのDoModalに失敗する。

Posted at

MFCでダイアログベースのアプリを作成しているときに、
別のダイアログをモーダルで開こうとしたところ、失敗してIDABORT(-1)で
即時戻ってきた。OnInitDialogも呼ばれず。

調べたところ、DoModalで開こうとしていたダイアログで
RichEdit2.0を使っていたことが原因。

RichEditを使うときは、AppクラスのInitInstanceで、
AfxInitRichEdit2()を呼び出す必要があるようだ。

知らなかったなぁ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0