Hi All,
I'm looking for a way to read the data that I stored using SetDialogData without calling the doModal.
I need the data to be available outside of the dialog class.
Thanks in advance,
Badie Saliba
As far as CAdUiDialog::GetDialogData method is public - so you call it outside of CAdUiDialog derived class.
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | 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
Hi Alexander,
In the below example I set the ARROW_POSITION_AS_MADE_SAVE in the BSKAcUiAsMadeDialog class, however, when I call it from BSK_ASMADE_POLY (outside the class ) I'm getting null data.
void BSK_ASMADE_POLY() {
BSKAcUiAsMadeDialog dlg;
//// Set the dialog name for registry lookup and storage
dlg.SetDialogName(_T("GEOtip:BSKAcUiAsMadeDialog"));
DWORD arrow_position_asmade;
DWORD arrow_position_bestfit;
DWORD arrow_position_ref;
if (!dlg.GetDialogData(_T("ARROW_POSITION_AS_MADE_SAVE"), arrow_position_asmade))
arrow_position_asmade = 1;
if (!dlg.GetDialogData(_T("ARROW_POSITION_BEST_FIT_SAVE"), arrow_position_bestfit))
arrow_position_bestfit = 0;
if (!dlg.GetDialogData(_T("ARROW_POSITION_REF_SAVE"), arrow_position_ref))
arrow_position_ref = 0;
}
Regedit screenshot:
Can't find what you're looking for? Ask the community or share your knowledge.