question about WH_CBT hook
-
using WH_CBT hook may get some information when a windows' status changed such as creating/destorying/size and etc. Some windows created may be dialog form , and some of them might be Information_style_dialog, some are warning_style_dialog through their icon style. So , which info from lParam or wParam can help judge dialog's style while using WH_CBT hook ?
-
using WH_CBT hook may get some information when a windows' status changed such as creating/destorying/size and etc. Some windows created may be dialog form , and some of them might be Information_style_dialog, some are warning_style_dialog through their icon style. So , which info from lParam or wParam can help judge dialog's style while using WH_CBT hook ?
fu0 wrote: Some windows created may be dialog form , and some of them might be Information_style_dialog, some are warning_style_dialog through their icon style. I think these "styles" only apply to the MessageBox() function, in which case, the "style" is not stored anywhere. It is created at runtime. If some dialog is using similar icons, there may be no way of finding out, short of parsing the dialog box template, or the dialogbox instance itself. Bikram Singh
-
fu0 wrote: Some windows created may be dialog form , and some of them might be Information_style_dialog, some are warning_style_dialog through their icon style. I think these "styles" only apply to the MessageBox() function, in which case, the "style" is not stored anywhere. It is created at runtime. If some dialog is using similar icons, there may be no way of finding out, short of parsing the dialog box template, or the dialogbox instance itself. Bikram Singh
-
Then , if the dialog is created by MessageBox() function, there is still no way to find out its icon style ? if the applcation turn out an exception, can Hook help recognise the error just happened ?
Short answer: NO Bikram Singh