dummy message
This commit is contained in:
parent
6ded50a21d
commit
47b9c5f88c
@ -14,15 +14,13 @@ LRESULT CALLBACK mainWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|||||||
switch(msg)
|
switch(msg)
|
||||||
{
|
{
|
||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
{
|
|
||||||
trackViewWin = createTrackViewWindow(GetModuleHandle(NULL), hwnd);
|
trackViewWin = createTrackViewWindow(GetModuleHandle(NULL), hwnd);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_SIZE:
|
case WM_SIZE:
|
||||||
{
|
{
|
||||||
int width = (short)LOWORD(lParam);
|
int width = LOWORD(lParam);
|
||||||
int height = (short)HIWORD(lParam);
|
int height = HIWORD(lParam);
|
||||||
MoveWindow(trackViewWin, 0, 0, width, height, TRUE);
|
MoveWindow(trackViewWin, 0, 0, width, height, TRUE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -60,7 +60,6 @@ void TrackView::paintTracks(HDC hdc, RECT rcTracks)
|
|||||||
topLeftCorner.left = 0;
|
topLeftCorner.left = 0;
|
||||||
topLeftCorner.right = leftMarginWidth;
|
topLeftCorner.right = leftMarginWidth;
|
||||||
FillRect(hdc, &topLeftCorner, (HBRUSH)GetStockObject(GRAY_BRUSH));
|
FillRect(hdc, &topLeftCorner, (HBRUSH)GetStockObject(GRAY_BRUSH));
|
||||||
// DrawEdge(hdc, &topLeftCorner, BDR_SUNKENINNER | BDR_RAISEDOUTER, BF_RIGHT | BF_BOTTOM);
|
|
||||||
ExcludeClipRect(hdc, topLeftCorner.left, topLeftCorner.top, topLeftCorner.right, topLeftCorner.bottom);
|
ExcludeClipRect(hdc, topLeftCorner.left, topLeftCorner.top, topLeftCorner.right, topLeftCorner.bottom);
|
||||||
|
|
||||||
SetBkMode(hdc, TRANSPARENT);
|
SetBkMode(hdc, TRANSPARENT);
|
||||||
@ -106,13 +105,14 @@ void TrackView::paintTracks(HDC hdc, RECT rcTracks)
|
|||||||
topMargin.left = trackLeft;
|
topMargin.left = trackLeft;
|
||||||
topMargin.right = trackLeft + trackWidth;
|
topMargin.right = trackLeft + trackWidth;
|
||||||
|
|
||||||
DrawEdge(hdc, &topMargin, BDR_RAISEDINNER | BDR_RAISEDOUTER, BF_ADJUST | BF_LEFT | BF_RIGHT | BF_BOTTOM);
|
RECT fillRect = topMargin;
|
||||||
FillRect(hdc, &topMargin, (HBRUSH)GetStockObject(LTGRAY_BRUSH));
|
DrawEdge(hdc, &fillRect, BDR_RAISEDINNER | BDR_RAISEDOUTER, BF_ADJUST | BF_LEFT | BF_RIGHT | BF_BOTTOM);
|
||||||
|
FillRect(hdc, &fillRect, (HBRUSH)GetStockObject(LTGRAY_BRUSH));
|
||||||
|
|
||||||
/* format the text */
|
/* format the text */
|
||||||
_snprintf_s(temp, 256, "track %d", x);
|
_snprintf_s(temp, 256, "track %d", x);
|
||||||
TextOut(hdc,
|
TextOut(hdc,
|
||||||
topMargin.left, 0,
|
fillRect.left, 0,
|
||||||
temp, int(strlen(temp))
|
temp, int(strlen(temp))
|
||||||
);
|
);
|
||||||
ExcludeClipRect(hdc, topMargin.left, topMargin.top, topMargin.right, topMargin.bottom);
|
ExcludeClipRect(hdc, topMargin.left, topMargin.top, topMargin.right, topMargin.bottom);
|
||||||
@ -164,13 +164,14 @@ void TrackView::paintTracks(HDC hdc, RECT rcTracks)
|
|||||||
FillRect( hdc, &topMargin, (HBRUSH)GetStockObject(LTGRAY_BRUSH));
|
FillRect( hdc, &topMargin, (HBRUSH)GetStockObject(LTGRAY_BRUSH));
|
||||||
|
|
||||||
/* pad left margin to the left edge */
|
/* pad left margin to the left edge */
|
||||||
|
#if 0
|
||||||
RECT leftMargin;
|
RECT leftMargin;
|
||||||
leftMargin.top = trackTop;
|
leftMargin.top = trackTop;
|
||||||
leftMargin.bottom = rcTracks.bottom;
|
leftMargin.bottom = rcTracks.bottom;
|
||||||
leftMargin.left = 0;
|
leftMargin.left = 0;
|
||||||
leftMargin.right = leftMarginWidth;
|
leftMargin.right = leftMarginWidth;
|
||||||
FillRect( hdc, &leftMargin, (HBRUSH)GetStockObject(LTGRAY_BRUSH));
|
FillRect( hdc, &leftMargin, (HBRUSH)GetStockObject(LTGRAY_BRUSH));
|
||||||
|
#endif
|
||||||
|
|
||||||
/* right margin */
|
/* right margin */
|
||||||
RECT rightMargin;
|
RECT rightMargin;
|
||||||
@ -178,6 +179,7 @@ void TrackView::paintTracks(HDC hdc, RECT rcTracks)
|
|||||||
rightMargin.bottom = rcTracks.bottom;
|
rightMargin.bottom = rcTracks.bottom;
|
||||||
rightMargin.left = trackLeft;
|
rightMargin.left = trackLeft;
|
||||||
rightMargin.right = rcTracks.right;
|
rightMargin.right = rcTracks.right;
|
||||||
|
// DrawEdge(hdc, &rightMargin, BDR_SUNKENINNER | BDR_RAISEDOUTER, BF_ADJUST | BF_LEFT);
|
||||||
FillRect( hdc, &rightMargin, (HBRUSH)GetStockObject(LTGRAY_BRUSH));
|
FillRect( hdc, &rightMargin, (HBRUSH)GetStockObject(LTGRAY_BRUSH));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user