[
板情報
|
カテゴリランキング
]
したらばTOP
■掲示板に戻る■
全部
1-100
最新50
|
メール
|
1-
101-
201-
301-
401-
501-
601-
701-
801-
901-
1001-
1101-
1201-
1301-
1401-
1501-
1601-
1701-
1801-
1901-
2001-
2101-
2201-
2301-
2401-
2501-
2601-
2701-
2801-
2901-
3001-
3101-
3201-
3301-
3401-
3501-
3601-
3701-
3801-
3901-
4001-
4101-
4201-
4301-
4401-
4501-
4601-
4701-
4801-
4901-
5001-
5101-
5201-
5301-
5401-
この機能を使うにはJavaScriptを有効にしてください
|
管理人の独り言(プログラミング関連)
3735
:
ACUVE★
:2011/11/25(金) 10:14:05
テーマなんて使わなくても、こんなソースで動いてしまったのでアレ。
なんか、タブコントロールのHDCの位置が色々とおかしい気がするのだが……?
-----
if(mhButtonWnd2 == hStaticWnd){
SetBkMode(hdc, TRANSPARENT);
HDC hTabDc = GetDC(mhTabWnd);
if(hTabDc){
scope_exit{ReleaseDC(mhTabWnd, hTabDc);};
RECT rc;
GetClientRect(mhButtonWnd2, &rc);
//MapWindowPoints(mhButtonWnd2, mhTabWnd, reinterpret_cast<LPPOINT>(&rc), 2);
HDC hdcMem = CreateCompatibleDC(hTabDc);
scope_exit{DeleteObject(hdcMem);};
HBITMAP hbmpMem = CreateCompatibleBitmap(hTabDc, rc.right - rc.left, rc.bottom - rc.top);
scope_exit{DeleteObject(hbmpMem);};
HBITMAP hbmpOld = reinterpret_cast<HBITMAP>(SelectObject(hdcMem, hbmpMem));
scope_exit{SelectObject(hdcMem, hbmpOld);};
/*
{
TCHAR buff[1024];
wsprintf(buff, TEXT("left: %d, right %d, top: %d, bottom: %d"), rc.left, rc.right, rc.top, rc.bottom);
MessageBox(nullptr, buff, nullptr, MB_OK);
}
*/
BitBlt(hdcMem, 0, 0, rc.right - rc.left, rc.bottom - rc.top, hTabDc, rc.left, rc.top, SRCCOPY);
return reinterpret_cast<LRESULT>(CreatePatternBrush(hbmpMem));
}
return reinterpret_cast<LRESULT>(GetStockObject(NULL_BRUSH));
}
新着レスの表示
名前:
E-mail
(省略可)
:
※書き込む際の注意事項は
こちら
※画像アップローダーは
こちら
(画像を表示できるのは「画像リンクのサムネイル表示」がオンの掲示板に限ります)
スマートフォン版
掲示板管理者へ連絡
無料レンタル掲示板