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. DeflateRect

DeflateRect

Scheduled Pinned Locked Moved C / C++ / MFC
c++
6 Posts 3 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.
  • D Offline
    D Offline
    Dennis L
    wrote on last edited by
    #1

    Hi All! What's the SDK function of the DeflateRect of MFC

    S T 2 Replies Last reply
    0
    • D Dennis L

      Hi All! What's the SDK function of the DeflateRect of MFC

      S Offline
      S Offline
      Stlan
      wrote on last edited by
      #2

      There is no corresponding function in the SDK. Actually, if you look at the definition of CRect::DeflateRect, you will see that it calls ::InflateRect by negating the parameters.

      T 1 Reply Last reply
      0
      • D Dennis L

        Hi All! What's the SDK function of the DeflateRect of MFC

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        Dennis L wrote: What's the SDK function of the DeflateRect of MFC No SDK available for that, you have to implement that. here is small logic to proceed :- void MyDeflate(RECT *rect,int left,int top,int right,int bottom) { rect->bottom-=bottom; rect->right-=right; rect->top+=top; rect->left+=left; } void MyDeflate(RECT *rect,SIZE size) { MyDeflate(rect,size.cx,size.cy); } void MyDeflate(RECT *rect,int x, int y) { MyDeflate(rect,x,x,y,y); }

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta

        1 Reply Last reply
        0
        • S Stlan

          There is no corresponding function in the SDK. Actually, if you look at the definition of CRect::DeflateRect, you will see that it calls ::InflateRect by negating the parameters.

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          Which finger are you using today?

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta

          S 1 Reply Last reply
          0
          • T ThatsAlok

            Which finger are you using today?

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta

            S Offline
            S Offline
            Stlan
            wrote on last edited by
            #5

            That's because I have plugged 2 keyboards on my PC so that now I can type twice faster than you! :-D

            T 1 Reply Last reply
            0
            • S Stlan

              That's because I have plugged 2 keyboards on my PC so that now I can type twice faster than you! :-D

              T Offline
              T Offline
              ThatsAlok
              wrote on last edited by
              #6

              Stlan wrote: I have plugged 2 keyboards on my PC :omg: Stlan wrote: now I can type twice faster than you! :laugh:;)

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta

              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