Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
eba2c792
Commit
eba2c792
authored
Sep 04, 1999
by
Francois Boisvert
Committed by
Alexandre Julliard
Sep 04, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the height of items in the lookin combobox of the filedlg95.
parent
cdb5650d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
cdlg_En.rc
dlls/commdlg/cdlg_En.rc
+3
-3
filedlg95.c
dlls/commdlg/filedlg95.c
+7
-4
No files found.
dlls/commdlg/cdlg_En.rc
View file @
eba2c792
...
...
@@ -249,9 +249,9 @@ FONT 8, "helv"
EDITTEXT IDC_FILENAME,54,110,158,15,ES_AUTOHSCROLL
LTEXT "File &name:",IDC_FILENAMESTATIC,3,111,36,10
LTEXT "Files of &type",IDC_FILETYPESTATIC,3,128,41,10
LTEXT "", IDC_SHELLSTATIC,3,21,273,84,SS_SUNKEN | NOT WS_VISIBLE | NOT WS_GROUP |WS_EX_TRANSPARENT
LTEXT "", IDC_SHELLSTATIC,3,21,273,84,SS_SUNKEN | NOT WS_VISIBLE | NOT WS_GROUP |WS_EX_TRANSPARENT
| WS_TABSTOP
LTEXT "Look &in",IDC_LOOKINSTATIC,3,5,29,10
COMBOBOX IDC_LOOKIN,50,1,137,
93
,CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | WS_VSCROLL | WS_TABSTOP
COMBOBOX IDC_LOOKIN,50,1,137,
55
,CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Up",IDC_UPFOLDER,194,1,15,15,BS_ICON | BS_CENTER | BS_VCENTER
PUSHBUTTON "New",IDC_NEWFOLDER,213,1,15,15,BS_ICON | BS_CENTER | BS_VCENTER
CONTROL "I",IDC_LIST,"Button",BS_AUTORADIOBUTTON | BS_ICON | BS_CENTER | BS_VCENTER | BS_PUSHLIKE,233,1,15,15
...
...
@@ -274,7 +274,7 @@ FONT 8, "helv"
LTEXT "Save as &type",IDC_FILETYPESTATIC,3,128,41,10
LTEXT "", IDC_SHELLSTATIC,3,21,273,84,SS_SUNKEN | NOT WS_VISIBLE | NOT WS_GROUP |WS_EX_TRANSPARENT
LTEXT "Save &in",IDC_LOOKINSTATIC,3,5,29,10
COMBOBOX IDC_LOOKIN,50,1,137,
93
,CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | WS_VSCROLL | WS_TABSTOP
COMBOBOX IDC_LOOKIN,50,1,137,
55
,CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Up",IDC_UPFOLDER,194,1,15,15,BS_ICON | BS_CENTER | BS_VCENTER
PUSHBUTTON "New",IDC_NEWFOLDER,213,1,15,15,BS_ICON | BS_CENTER | BS_VCENTER
CONTROL "I",IDC_LIST,"Button",BS_AUTORADIOBUTTON | BS_ICON | BS_CENTER | BS_VCENTER | BS_PUSHLIKE,233,1,15,15
...
...
dlls/commdlg/filedlg95.c
View file @
eba2c792
...
...
@@ -96,6 +96,8 @@ typedef struct tagLookInInfo
SendMessageA(hwnd,CB_GETCOUNT,0,0);
#define CBShowDropDown(hwnd,show) \
SendMessageA(hwnd,CB_SHOWDROPDOWN,(WPARAM)show,0);
#define CBSetItemHeight(hwnd,index,height) \
SendMessageA(hwnd,CB_SETITEMHEIGHT,(WPARAM)index,(LPARAM)height);
const
char
*
FileOpenDlgInfosStr
=
"FileOpenDlgInfos"
;
/* windows property description string */
...
...
@@ -518,12 +520,12 @@ BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType)
if
(
ofn
->
lpstrInitialDir
)
{
fodInfos
->
ofnInfos
.
lpstrInitialDir
=
(
LPSTR
)
MemAlloc
(
lstrlenW
(
ofn
->
lpstrInitialDir
)
+
1
);
lstrcpyWtoA
(
fodInfos
->
ofnInfos
.
lpstrInitialDir
,
ofn
->
lpstrInitialDir
);
lstrcpyWtoA
(
(
LPSTR
)
fodInfos
->
ofnInfos
.
lpstrInitialDir
,
ofn
->
lpstrInitialDir
);
}
if
(
ofn
->
lpstrTitle
)
{
fodInfos
->
ofnInfos
.
lpstrTitle
=
(
LPSTR
)
MemAlloc
(
lstrlenW
(
ofn
->
lpstrTitle
)
+
1
);
lstrcpyWtoA
(
fodInfos
->
ofnInfos
.
lpstrTitle
,
ofn
->
lpstrTitle
);
lstrcpyWtoA
(
(
LPSTR
)
fodInfos
->
ofnInfos
.
lpstrTitle
,
ofn
->
lpstrTitle
);
}
fodInfos
->
ofnInfos
.
Flags
=
ofn
->
Flags
|
OFN_WINE
|
OFN_UNICODE
;
fodInfos
->
ofnInfos
.
nFileOffset
=
ofn
->
nFileOffset
;
...
...
@@ -531,14 +533,14 @@ BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType)
if
(
ofn
->
lpstrDefExt
)
{
fodInfos
->
ofnInfos
.
lpstrDefExt
=
(
LPSTR
)
MemAlloc
(
lstrlenW
(
ofn
->
lpstrDefExt
)
+
1
);
lstrcpyWtoA
(
fodInfos
->
ofnInfos
.
lpstrDefExt
,
ofn
->
lpstrDefExt
);
lstrcpyWtoA
(
(
LPSTR
)
fodInfos
->
ofnInfos
.
lpstrDefExt
,
ofn
->
lpstrDefExt
);
}
fodInfos
->
ofnInfos
.
lCustData
=
ofn
->
lCustData
;
fodInfos
->
ofnInfos
.
lpfnHook
=
(
LPOFNHOOKPROC
)
ofn
->
lpfnHook
;
if
(
ofn
->
lpTemplateName
)
{
fodInfos
->
ofnInfos
.
lpTemplateName
=
(
LPSTR
)
MemAlloc
(
lstrlenW
(
ofn
->
lpTemplateName
)
+
1
);
lstrcpyWtoA
(
fodInfos
->
ofnInfos
.
lpTemplateName
,
ofn
->
lpTemplateName
);
lstrcpyWtoA
(
(
LPSTR
)
fodInfos
->
ofnInfos
.
lpTemplateName
,
ofn
->
lpTemplateName
);
}
/* Initialise the dialog property */
fodInfos
->
DlgInfos
.
dwDlgProp
=
0
;
...
...
@@ -1453,6 +1455,7 @@ static HRESULT FILEDLG95_LOOKIN_Init(HWND hwndCombo)
liInfos
->
iMaxIndentation
=
0
;
SetPropA
(
hwndCombo
,
LookInInfosStr
,
(
HANDLE
)
liInfos
);
CBSetItemHeight
(
hwndCombo
,
0
,
GetSystemMetrics
(
SM_CYSMICON
));
/* Initialise data of Desktop folder */
COMDLG32_SHGetSpecialFolderLocation
(
0
,
CSIDL_DESKTOP
,
&
pidlTmp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment