mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
fix stuff
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@678 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -694,7 +694,12 @@ char* MwLLGetClipboard(MwLL handle) {
|
||||
|
||||
void MwLLMakeToolWindow(MwLL handle) {
|
||||
LPARAM lp = GetWindowLongPtr(handle->hWnd, GWL_STYLE) & WS_VISIBLE;
|
||||
RECT rc;
|
||||
|
||||
SetWindowLongPtr(handle->hWnd, GWL_STYLE, (LPARAM)lp);
|
||||
SetWindowLongPtr(handle->hWnd, GWL_EXSTYLE, (LPARAM)WS_EX_TOOLWINDOW);
|
||||
|
||||
GetClientRect(handle->hWnd, &rc);
|
||||
|
||||
SetWindowPos(handle->hWnd, NULL, 0, 0, rc.right - rc.left, rc.bottom - rc.top, SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOZORDER);
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@ static void frame_draw(MwWidget handle) {
|
||||
MwLLDrawPixmap(handle->lowlevel, &r2, lb->list[i].pixmap);
|
||||
}
|
||||
p.y += MwTextHeight(handle, "M") / 2;
|
||||
p.x = MwGetInteger(handle->parent, MwNleftPadding);
|
||||
p.x = MwGetInteger(handle->parent, MwNleftPadding) + MwDefaultBorderWidth(handle);
|
||||
for(j = 0; j < arrlen(lb->list[i].name); j++) {
|
||||
char* t = lb->list[i].name[j];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user