Click here to Skip to main content
15,919,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRegistry Hacking Pin
shahzad Ahmed8-Mar-05 3:33
shahzad Ahmed8-Mar-05 3:33 
GeneralRe: Registry Hacking Pin
David Crow8-Mar-05 4:07
David Crow8-Mar-05 4:07 
QuestionWhy display icon in ListCtrl with a black shadow ?? Pin
lillah8-Mar-05 3:00
lillah8-Mar-05 3:00 
GeneralDLL Extension MFC Pin
sunit58-Mar-05 2:26
sunit58-Mar-05 2:26 
GeneralRe: DLL Extension MFC Pin
ThatsAlok8-Mar-05 2:58
ThatsAlok8-Mar-05 2:58 
GeneralRe: DLL Extension MFC Pin
sunit58-Mar-05 20:23
sunit58-Mar-05 20:23 
GeneralAllocating struct with malloc, shows as undefined in Visual C++ debugger Pin
Dave J Smith8-Mar-05 1:18
Dave J Smith8-Mar-05 1:18 
GeneralRe: Allocating struct with malloc, shows as undefined in Visual C++ debugger Pin
CP Visitor8-Mar-05 5:45
CP Visitor8-Mar-05 5:45 
Generalremove() files but not into recycle bin Pin
User 17288848-Mar-05 0:35
User 17288848-Mar-05 0:35 
GeneralRe: remove() files but not into recycle bin Pin
ThatsAlok8-Mar-05 2:13
ThatsAlok8-Mar-05 2:13 
GeneralRe: remove() files but not into recycle bin Pin
TheGreatAndPowerfulOz8-Mar-05 3:38
TheGreatAndPowerfulOz8-Mar-05 3:38 
GeneralRe: remove() files but not into recycle bin Pin
Mike Dimmick8-Mar-05 8:04
Mike Dimmick8-Mar-05 8:04 
GeneralProcess is signaled on start up if another instance is running Pin
lulacapixaba8-Mar-05 0:17
lulacapixaba8-Mar-05 0:17 
GeneralRe: Process is signaled on start up if another instance is running Pin
Mike Dimmick8-Mar-05 2:36
Mike Dimmick8-Mar-05 2:36 
GeneralRe: Process is signaled on start up if another instance is running Pin
lulacapixaba8-Mar-05 3:02
lulacapixaba8-Mar-05 3:02 
GeneralRe: Process is signaled on start up if another instance is running Pin
TheGreatAndPowerfulOz8-Mar-05 3:36
TheGreatAndPowerfulOz8-Mar-05 3:36 
GeneralUsing Regions Pin
Kyudos8-Mar-05 0:02
Kyudos8-Mar-05 0:02 
GeneralRe: Using Regions Pin
namaskaaram8-Mar-05 17:12
namaskaaram8-Mar-05 17:12 
well i dunno anthing abt PtInRegion.....but i can give u totally new way of doing it.....but u have to do it from scratch.....
derive a class from the CStatic and subclass it by embedding the WM_MOUSEMOVE and the WM_TIMER message on to it.....
then.....draw a static control then using the wizard,assign an object say m_obj(thru ddx and linked to the class that u have just derived)and using thiz load the image on to the ststic control by using the LoadImage() ..or anyother ....

in the OnMouseMove add the following code....

if(m_showframe==FALSE)//declare a bool variable and set it to Fiale in the constructor.....
{
ModifyStyle(SS_BITMAP,SS_GRAYFRAME);
m_showframe=TRUE;
m_update=TRUE;
}


in the Ontimer()...use the following code...

CPoint p(GetMessagePos());
ScreenToClient(&p);

// Get the bounds of the control (just the client area)

GetClientRect(rect);

// Check the mouse is inside the control
if (!rect.PtInRect(p))
{
KillTimer(m_nTimerID);
m_timeronce=0;

ModifyStyle(SS_GRAYFRAME,SS_BITMAP);
m_showframe=FALSE;
m_update=TRUE;//add in a timer in ur main dialog.....to keep checking for m_update if set the timer in the main dialog should redraw


}



hope thiz idea helpz u ......



cheerz.....Big Grin | :-D

"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
Generalvideo codec Pin
codecfvc17-Mar-05 23:53
codecfvc17-Mar-05 23:53 
GeneralA program within a program Pin
Ubik K7-Mar-05 23:36
Ubik K7-Mar-05 23:36 
GeneralRe: A program within a program Pin
BlackDice8-Mar-05 2:38
BlackDice8-Mar-05 2:38 
GeneralRe: A program within a program Pin
u6ik8-Mar-05 3:00
u6ik8-Mar-05 3:00 
GeneralRe: A program within a program Pin
Phil J Pearson8-Mar-05 4:47
Phil J Pearson8-Mar-05 4:47 
GeneralRe: A program within a program Pin
David Crow8-Mar-05 3:56
David Crow8-Mar-05 3:56 
GeneralRe: A program within a program Pin
u6ik8-Mar-05 4:12
u6ik8-Mar-05 4:12 

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.