Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. question about WH_CBT hook

question about WH_CBT hook

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fu0
    wrote on last edited by
    #1

    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 ?

    B 1 Reply Last reply
    0
    • F fu0

      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 ?

      B Offline
      B Offline
      bikram singh
      wrote on last edited by
      #2

      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

      F 1 Reply Last reply
      0
      • B 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

        F Offline
        F Offline
        fu0
        wrote on last edited by
        #3

        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 ?

        B 1 Reply Last reply
        0
        • F fu0

          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 ?

          B Offline
          B Offline
          bikram singh
          wrote on last edited by
          #4

          Short answer: NO Bikram Singh

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups