Click here to Skip to main content
15,904,297 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldraw on a button... Pin
devvvy28-Oct-02 15:34
devvvy28-Oct-02 15:34 
Generalpaint a bitmap on button... Pin
devvvy28-Oct-02 15:55
devvvy28-Oct-02 15:55 
GeneralRe: draw on a button... Pin
ian mariano29-Oct-02 1:43
ian mariano29-Oct-02 1:43 
Questionhow do u import a library? Pin
devvvy28-Oct-02 14:58
devvvy28-Oct-02 14:58 
AnswerRe: how do u import a library? Pin
Christian Graus28-Oct-02 15:16
protectorChristian Graus28-Oct-02 15:16 
GeneralRe: how do u import a library? Pin
devvvy28-Oct-02 15:24
devvvy28-Oct-02 15:24 
GeneralRe: how do u import a library? Pin
Christian Graus28-Oct-02 16:50
protectorChristian Graus28-Oct-02 16:50 
AnswerRe: how do u import a library? Pin
Paul M Watt28-Oct-02 16:15
mentorPaul M Watt28-Oct-02 16:15 
SetLayeredWindowAttributes is only supported on Windows 2000 or greater therefore you will not see it on an older operating system. If you are building for windows 2000 or greater, you will need to define _WIN32_WINNT = 0x0500, otherwise the preproocessor will remove all of the API definitions that are only available on Windows 2000 and above. Coincidentally this will cause runtime error if you run one of these programs on a system that has an older DLL version.

As far as linking a library to your project, you can do it the way that you specified, or you can go to the linker tab of your projects settings, and add the name of the lib to your project. However most likely you are already linking user32.lib into your program if your program already has a user interface.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: how do u import a library? Pin
devvvy28-Oct-02 16:27
devvvy28-Oct-02 16:27 
GeneralRe: how do u import a library? Pin
devvvy28-Oct-02 16:53
devvvy28-Oct-02 16:53 
GeneralAuto Resized Objects in CFormView :: MFC Pin
valikac28-Oct-02 14:56
valikac28-Oct-02 14:56 
GeneralRe: Auto Resized Objects in CFormView :: MFC Pin
Maximilien28-Oct-02 15:06
Maximilien28-Oct-02 15:06 
GeneralRe: Auto Resized Objects in CFormView :: MFC Pin
valikac28-Oct-02 15:26
valikac28-Oct-02 15:26 
GeneralRe: Auto Resized Objects in CFormView :: MFC Pin
valikac28-Oct-02 17:27
valikac28-Oct-02 17:27 
GeneralRe: Auto Resized Objects in CFormView :: MFC Pin
Maximilien29-Oct-02 2:27
Maximilien29-Oct-02 2:27 
GeneralRe: Auto Resized Objects in CFormView :: MFC Pin
valikac29-Oct-02 4:31
valikac29-Oct-02 4:31 
GeneralQuestion for the IE internals gurus Pin
Eugene Polonsky28-Oct-02 14:20
Eugene Polonsky28-Oct-02 14:20 
GeneralRe: Question for the IE internals gurus Pin
Stephane Rodriguez.28-Oct-02 17:36
Stephane Rodriguez.28-Oct-02 17:36 
GeneralRe: Question for the IE internals gurus Pin
ian mariano29-Oct-02 1:53
ian mariano29-Oct-02 1:53 
GeneralRe: Question for the IE internals gurus Pin
Eugene Polonsky29-Oct-02 13:28
Eugene Polonsky29-Oct-02 13:28 
GeneralReplacing GINA Pin
Anders Molin28-Oct-02 13:59
professionalAnders Molin28-Oct-02 13:59 
GeneralRe: Replacing GINA Pin
Daniel Lohmann29-Oct-02 3:46
Daniel Lohmann29-Oct-02 3:46 
GeneralRe: Replacing GINA Pin
Anders Molin29-Oct-02 3:52
professionalAnders Molin29-Oct-02 3:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.