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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem, help !!

Problem, help !!

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
4 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.
  • V Offline
    V Offline
    VitSoft
    wrote on last edited by
    #1

    Hi All !! I've stupid problem !!! It make me crazy :( I want to use WinAPI struct ALTTABINFO this struct is contained in but no way to use this struct because compiler performs an output: error C2065: 'ALTTABINFO' : undeclared identifier for example //#include //but I must include windows.h, look in help #include void main(void) { ALTTABINFO myInfo;// error!! why??? ..... } Best regards VitSoft

    N M 2 Replies Last reply
    0
    • V VitSoft

      Hi All !! I've stupid problem !!! It make me crazy :( I want to use WinAPI struct ALTTABINFO this struct is contained in but no way to use this struct because compiler performs an output: error C2065: 'ALTTABINFO' : undeclared identifier for example //#include //but I must include windows.h, look in help #include void main(void) { ALTTABINFO myInfo;// error!! why??? ..... } Best regards VitSoft

      N Offline
      N Offline
      NormDroid
      wrote on last edited by
      #2

      If you do not have MSDN, get it and get it quick, you can't possible write windows programs without it (I have but that was many moons ago). The ALTTABINFO structure contains status information for the application-switching (ALT+TAB) window. typedef struct tagALTTABINFO { DWORD cbSize; int cItems; int cColumns; int cRows; int iColFocus; int iRowFocus; int cxItem; int cyItem; POINT ptStart; } ALTTABINFO, *PALTTABINFO, *LPALTTABINFO; Members cbSize Specifies the size, in bytes, of the structure. cItems Specifies the number of items in the window. cColumns Specifies the number of columns in the window. cRows Specifies the number of rows in the window. iColFocus Specifies the column of the item that has the focus. iRowFocus Specifies the row of the item that has the focus. cxItem Specifies the width of each icon in the application-switching window. cyItem Specifies the height of each icon in the application-switching window. ptStart Specifies the top-left corner of the first icon. Requirements Windows NT/2000 or later: Requires Windows NT 4.0 SP6 or later. Windows 95/98/Me: Requires Windows 98 or later. Header: Declared in Winuser.h; include Windows.h. See Also Windows Overview, Window Structures, GetAltTabInfo

      V 1 Reply Last reply
      0
      • N NormDroid

        If you do not have MSDN, get it and get it quick, you can't possible write windows programs without it (I have but that was many moons ago). The ALTTABINFO structure contains status information for the application-switching (ALT+TAB) window. typedef struct tagALTTABINFO { DWORD cbSize; int cItems; int cColumns; int cRows; int iColFocus; int iRowFocus; int cxItem; int cyItem; POINT ptStart; } ALTTABINFO, *PALTTABINFO, *LPALTTABINFO; Members cbSize Specifies the size, in bytes, of the structure. cItems Specifies the number of items in the window. cColumns Specifies the number of columns in the window. cRows Specifies the number of rows in the window. iColFocus Specifies the column of the item that has the focus. iRowFocus Specifies the row of the item that has the focus. cxItem Specifies the width of each icon in the application-switching window. cyItem Specifies the height of each icon in the application-switching window. ptStart Specifies the top-left corner of the first icon. Requirements Windows NT/2000 or later: Requires Windows NT 4.0 SP6 or later. Windows 95/98/Me: Requires Windows 98 or later. Header: Declared in Winuser.h; include Windows.h. See Also Windows Overview, Window Structures, GetAltTabInfo

        V Offline
        V Offline
        VitSoft
        wrote on last edited by
        #3

        Hi !!! Thanks !! I've MSDN lib,I know it possible to redefine this struct, but when you want use GetAltTabInfo(..) function you have the same problem. Why compiler don't know about this function or struct ? error C2065: 'GetAltTabInfo' : undeclared identifier I'm a long time work with VC, but it's first time when i have problem like this ;( Thanks and Good Luck

        1 Reply Last reply
        0
        • V VitSoft

          Hi All !! I've stupid problem !!! It make me crazy :( I want to use WinAPI struct ALTTABINFO this struct is contained in but no way to use this struct because compiler performs an output: error C2065: 'ALTTABINFO' : undeclared identifier for example //#include //but I must include windows.h, look in help #include void main(void) { ALTTABINFO myInfo;// error!! why??? ..... } Best regards VitSoft

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          If you look in winuser.h, you'll see the ALTTABINFO declaration is wrapped in an #if (WINVER >= 0x0500) block. You'll need to #define WINVER 0x0500 before your #include statements. --Mike-- http://home.inreach.com/mdunn/ The Signature, back by popular demand: Buffy. Pajamas.

          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