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. raise event

raise event

Scheduled Pinned Locked Moved C / C++ / MFC
designquestionlounge
2 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.
  • A Offline
    A Offline
    Andreoli Carlo
    wrote on last edited by
    #1

    ok my situation is: i have a panel with 3 picture_box, but in general with 3 control

    --------------------------------------
    panel 1
    img 1 img 2 img 3
    --------------------------
    -------------------------------------

    over this panel i design a new semi-transparent form...what i want is that clicking on form1 in correspondance with the "img1" i can raise img1 click event.... i'm actually able to get the right control where i'm on, but i would like to be able to raise events. I know it's possible by extending the "picture box" class or by using a "button" with performClick method but i'd like to know if there is something for the general control class? thank in advance

    M 1 Reply Last reply
    0
    • A Andreoli Carlo

      ok my situation is: i have a panel with 3 picture_box, but in general with 3 control

      --------------------------------------
      panel 1
      img 1 img 2 img 3
      --------------------------
      -------------------------------------

      over this panel i design a new semi-transparent form...what i want is that clicking on form1 in correspondance with the "img1" i can raise img1 click event.... i'm actually able to get the right control where i'm on, but i would like to be able to raise events. I know it's possible by extending the "picture box" class or by using a "button" with performClick method but i'd like to know if there is something for the general control class? thank in advance

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      If your control is derived from CWnd, You should be able to define handlers for OnLButtonDown, OnLButtonUp, ..

      Watched code never compiles.

      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