CAdUiDialog and EndDialog

CAdUiDialog and EndDialog

dinomyar
Enthusiast Enthusiast
617 Views
2 Replies
Message 1 of 3

CAdUiDialog and EndDialog

dinomyar
Enthusiast
Enthusiast

I have a dialog that is derived off of CAdUiDialog so I can have the resizing options. Works great, except that with some controls I need to end the dialog with a different code than IDOK. I do this by calling EndDialog(12) with the code that I want to end with. The problem is that when I end the dialog like this, it does not save the sizing and positioning for the dialog, that appears to only be done in the OnOK call. I cannot find a function to call to force a save of the size and positioning. Is there a way to do this?

0 Likes
Accepted solutions (1)
618 Views
2 Replies
Replies (2)
Message 2 of 3

Alexander.Rivilis
Mentor
Mentor
Accepted solution

@dinomyar

 

I did not used CAdUiDialog. So my answer is pure theoretical. 🙂 Try to use StorePixelData method before call EndDialog(). ObjectARX Docs say:

 

This member is used to write persistent dialog data to the registry. The default OnOK() handler calls this routine. Returns TRUE on success, FALSE otherwise.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

0 Likes
Message 3 of 3

dinomyar
Enthusiast
Enthusiast

Nevermind I found it. Have to call StorePixelData();

 

0 Likes