So here is my problem, i got it to work, but it's like f*cked up, i just wanted some help because i'm haveing headaches of the taskbar...
As you see here, i wanted to do my own way to move it, and as the Capture thingy didn't work, i used my way to..
So the problem is here
I hope that you guys will help me, i'll be soon releasing my taskbar after finishing all of it. And here is a lucky picture, using that code.
[Only registered and activated users can see links. Click Here To Register...]
Thanks for helping.
Code:
void CWndSlideBar::OnLButtonDown(UINT nFlags, CPoint point)
{
MouseLocation = point;
SetCapture();
}
void CWndSlideBar::OnMouseMove(UINT nFlags, CPoint point)
{
CRect rectRoot = m_pWndRoot->GetLayoutRect();
CRect rectWindow = GetWindowRect();
int FixedY = rectWindow.top;
int FixedX = rectWindow.bottom;
int yLimit = rectRoot.bottom - 65;
//Move54 = (MouseLocation.x - point.x);
if(FixedY != yLimit)
FixedY = yLimit;
if(FixedX < rectRoot.bottom - 65)
FixedX = rectRoot.bottom - 65;
else if(FixedX > rectRoot.bottom - 15)
FixedX = rectRoot.bottom - 15;
int diff = (point.x) - (MouseLocation.x);
FixedX += (diff);
//if(g_bKeyTable[0x01] && IsPush())
//{
CPoint point1( FixedX , FixedY );
Move( point1 );
//g_bKeyTable[ dwHotkey[i] ] = 0;
//}
CWndNeuz::OnMouseMove( nFlags, point );
}
So the problem is here
Code:
int diff = (point.x) - (MouseLocation.x); FixedX += (diff);
[Only registered and activated users can see links. Click Here To Register...]
Thanks for helping.