简体   繁体   中英

mfc change the cursor of a dialog from another dialog

I have an application which has two subdialogs. On pressing a button on one dialog I want the the cursor of the other dialog to be changed. Is there any method other than sending message to the window?

Make the parent class of the dialog available through the constructor (m_pParent) and refer to members of the other dialogs there. You can declare a friend class in one dialog to make private members accessible from the other dialog and change the curser this way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM