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
Z

zubeido

@zubeido
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • KBDLLHOOKSTRUCT error why?
    Z zubeido

    HHOOK hKeyHook; __declspec(dllexport) LRESULT CALLBACK KeyEvent (int nCode,WPARAM wParam, LPARAM lParam) { if( (nCode= HC_ACTION) && ( (wParam = WM_SYSKEYDOWN) || (wParam = WM_KEYDOWN) ) ) { KBDLLHOOKSTRUCT hooked *= *((KBDLLHOOKSTRUCT*)lParam); DWORD dwMsg; dwMsg += hooked.scanCode <<16; dwMsg += hooked.flags << 24; char lpszName[0x100] = {0}; lpszName[0] = '['; int i= GetKeyNameText(dwMsg,(lpszName+1),0xff) +1; lpszName[i] = ']'; printf(lpszName); } I want to hook the keyboard but the KBDLLHOOKSTRUCT struct keeps giving error even with the intelisense showing the members of the struct. I dont really get it Here are the errors error C2065: 'KBDLLHOOKSTRUCT' : undeclared identifier error C2059: syntax error : ')' among other stupid errors. Can anyone help me? Tks in advance

    C / C++ / MFC help question

  • form background bitmap
    Z zubeido

    Hi all! I've been tring to put a bitmap background image on the main Dialog but nearest i can get is this: CDC* pDC=GetDC(); CDC old; //New device context used as the source DC //Creates a deice context compatible to pDC old.CreateCompatibleDC(pDC); CBitmap dlg_bmp; CRect rect; GetClientRect(&rect); dlg_bmp.LoadBitmap(IDB_BITMAP3); CBitmap* oldbmp= old.SelectObject(&dlg_bmp); pDC->BitBlt(rect.left, rect.top, rect.Height(), rect.Width (),&old,0,0,SRCCOPY); old.SelectObject(oldbmp); dlg_bmp.DeleteObject(); //Deletes the bitmap Invalidate(); when this runs the bitmap is loaded and it overrun the other controls hiding them If some one help me i'd be very gratefull AI_Warrior

    C / C++ / MFC graphics help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups