Click here to Skip to main content
15,906,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: how do u import a library? Pin
devvvy28-Oct-02 16:27
devvvy28-Oct-02 16:27 
QUESTION 1:

#define _WIN32_WINNT = 0x0500

and why? It's not in the api documentation??

QUESTION 2:

What do I type in project>setting>"link" tab>"object/library module" ??

"./user32.lib"

Is this right? Do I have to include quotation mark?


QUESTION 3: I downloaded a sample that uses LoadLibrary.

# define LWA_COLORKEY 1
# define LWA_ALPHA 2
# define WS_EX_LAYERED 0x80000

HWND hWnd=this->m_hWnd;

typedef DWORD (WINAPI *PSLWA)(HWND, DWORD, BYTE, DWORD);

PSLWA pSetLayeredWindowAttributes;

HMODULE hDLL = LoadLibrary ("user32");
pSetLayeredWindowAttributes = (PSLWA) GetProcAddress(hDLL,"SetLayeredWindowAttributes");

if (pSetLayeredWindowAttributes != NULL) {
pSetLayeredWindowAttributes(this->m_hWnd, RGB(255,255,255), 100, LWA_COLORKEY|LWA_ALPHA);
}

It claims that the code wont crash even if run on Win98 or platform that doesnt support SetLayeredWindowAttributes and transparency.

U think it's a good idea?

norm
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 
GeneralDeranged CHtmlCtrl Pin
monrobot1328-Oct-02 13:39
monrobot1328-Oct-02 13:39 

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.