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
P

pritamkd

@pritamkd
About
Posts
6
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Tray Icon Menu Command handling in MFC
    P pritamkd

    Hey Folks!, i got the idea! i didn't have a proper handler in place for the TRAY_EXIT message. My bad!!! :( Anyway , thanks a lot for your help!!!! :) Pritam

    C / C++ / MFC c++ com help question

  • Tray Icon Menu Command handling in MFC
    P pritamkd

    I tried AfxPostQuitMessage(0) but didn't work. Basically, i have put a WM_COMMAND handler function where i check if the ID is TRAY_EXIT (thats the id of the Exit Menu option) and try to call AfxPostQuitMessage() there. But nothing happens. I ran DebugView to capture win32 and ran the app. But DebugView says: >>routing command id 0x8003 sent to app >>IGNORING command id 0x8003 sent to Cdialog Dialog (0x8003 is the TRAY_EXIT number) Is there a better way to handle creating a menu and providing exit option and then handling it?????? Looks like i am missing something here............ Pritam

    C / C++ / MFC c++ com help question

  • Tray Icon Menu Command handling in MFC
    P pritamkd

    I have a MFC App with a Tray Icon. On Right clicking the Tray Icon i get a small 'Exit' menu and then on clicking on that i need to exit the App, but thats not happening, and the second time i click there's an assertion. On the handler for the Exit button, i call DestroyWindow(); Also i am overloading the WM_WINDOWPOSCHANGED as said in this article. http://www.codeproject.com/dialog/dlgboxtricks.asp Any help here????? Pritam

    C / C++ / MFC c++ com help question

  • how to create a transparent pen?
    P pritamkd

    Thanks for replying... But this code is all in Platform SDK, how do i create a NULL_PEN there. I create a BS_HOLLOW(same as BS_NULL) but it doesn't draw the line at all. Your help will be appreciated! Hercules

    C / C++ / MFC graphics help tutorial question

  • how to create a transparent pen?
    P pritamkd

    Hi, I am developing a marker application. Basically allows free-hand drawing with the mouse. When i draw a line, i want the window below also to visible. I am not able to create a transparent Pen for this? i tried BS_HOLLOW, but it doesn't draw at all. hdc = CreateDC(TEXT("DISPLAY"),NULL,NULL,NULL); lb.lbColor = rgbCurrent; lb.lbHatch = NULL; lb.lbStyle = BS_SOLID; //hNewPen = CreatePen(PS_SOLID,10,rgbCurrent); //SetROP2(hdc,R2_MERGEPEN); hNewPen = ExtCreatePen(PS_GEOMETRIC,10,&lb,0,NULL); //SelectObject(hdc,CreateBrushIndirect(&lb)); //SetDCBrushColor(hdc,rgbCurrent); SelectObject(hdc,hNewPen); MoveToEx(hdc, PrevX, PrevY, NULL); LineTo(hdc, CurrX, CurrY); DeleteDC(hdc); ........ Can anyone help? Hercules

    C / C++ / MFC graphics help tutorial question

  • How To Create a Transparent Pen?
    P pritamkd

    Hi, I am developing a marker application. Basically allows free-hand drawing with the mouse. When i draw a line, i want the window below also to visible. I am not able to create a transparent Pen for this? i tried BS_HOLLOW, but it doesn't draw at all. hdc = CreateDC(TEXT("DISPLAY"),NULL,NULL,NULL); lb.lbColor = rgbCurrent; lb.lbHatch = NULL; lb.lbStyle = BS_SOLID; //hNewPen = CreatePen(PS_SOLID,10,rgbCurrent); //SetROP2(hdc,R2_MERGEPEN); hNewPen = ExtCreatePen(PS_GEOMETRIC,10,&lb,0,NULL); //SelectObject(hdc,CreateBrushIndirect(&lb)); //SetDCBrushColor(hdc,rgbCurrent); SelectObject(hdc,hNewPen); MoveToEx(hdc, PrevX, PrevY, NULL); LineTo(hdc, CurrX, CurrY); DeleteDC(hdc); ........ Can anyone help? Hercules

    C / C++ / MFC graphics help tutorial question
  • Login

  • Don't have an account? Register

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