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. COM
  4. How resize a ATL control inside ATL DLL?

How resize a ATL control inside ATL DLL?

Scheduled Pinned Locked Moved COM
questionc++sysadmin
3 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.
  • C Offline
    C Offline
    chenzhu
    wrote on last edited by
    #1

    That is how resizing a ATL control inside the ATL server DLL? The detail is: I set a ATL control property with Width and Height and want resize the control according to the two parameters. Please tell me how can I get it? cz

    A 1 Reply Last reply
    0
    • C chenzhu

      That is how resizing a ATL control inside the ATL server DLL? The detail is: I set a ATL control property with Width and Height and want resize the control according to the two parameters. Please tell me how can I get it? cz

      A Offline
      A Offline
      Amit Dey
      wrote on last edited by
      #2

      Hi have you tried SetWindowPos() ? Hush..Hush.. thought I heard you calling my name now...

      C 1 Reply Last reply
      0
      • A Amit Dey

        Hi have you tried SetWindowPos() ? Hush..Hush.. thought I heard you calling my name now...

        C Offline
        C Offline
        chenzhu
        wrote on last edited by
        #3

        Yes, I have do it by SetWindowPos. Just after I call this function, the ATL extenter has been resized(become smaller). But I click in the original rect of the ATL extenter, the ATL become the original size as same as before calling SetWindowPos. In fact I want to call SetWindowRgn to make a irregular ATL control, but I cannot because the same reason as above. Click the ATL, it become back to previous shape. cz

        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