-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0e8dc8f
Showing
15 changed files
with
3,812 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# VB6 source files (show diff + keep CRLF in zip download) | ||
|
||
*.bas working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.cls working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.ctl working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.dob working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.dsr working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.frm working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.pag working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.vbg working-tree-encoding=CP1252 text eol=crlf | ||
*.vbl working-tree-encoding=CP1252 text eol=crlf | ||
*.vbp working-tree-encoding=CP1252 text eol=crlf | ||
*.vbr working-tree-encoding=CP1252 text eol=crlf | ||
*.vbw working-tree-encoding=CP1252 text eol=crlf | ||
|
||
# Other source files (show diff + LF only in zip download) | ||
|
||
*.asm text | ||
*.asp text | ||
*.bat text | ||
*.c text | ||
*.cpp text | ||
*.dsp text | ||
*.dsw text | ||
*.h text | ||
*.idl text | ||
*.java text | ||
*.js text | ||
*.manifest text | ||
*.odl text | ||
*.php text | ||
*.php3 text | ||
*.rc text | ||
*.sln text | ||
*.sql text | ||
*.vb text | ||
*.vbs text | ||
|
||
# Binary | ||
|
||
*.res binary | ||
*.frx binary | ||
*.ctx binary | ||
*.dsx binary | ||
*.exe binary | ||
*.dll binary | ||
*.ocx binary | ||
*.cmp binary | ||
*.pdb binary | ||
*.tlb binary | ||
*.xls binary | ||
*.doc binary | ||
*.ppt binary | ||
*.xlsx binary | ||
*.docx binary | ||
*.pptx binary | ||
*.chm binary | ||
*.hlp binary | ||
*.jpg binary | ||
*.png binary | ||
*.bmp binary | ||
*.gif binary | ||
*.ico binary | ||
*.zip binary | ||
*.cab binary | ||
*.7z binary | ||
*.gz binary | ||
|
||
# Text files but keep as binary (no diff) | ||
|
||
# *.cfg text | ||
# *.conf text | ||
# *.csi text | ||
# *.css text | ||
# *.csv text | ||
# *.def text | ||
# *.htm text | ||
# *.html text | ||
# *.inf text | ||
# *.ini text | ||
# *.log text | ||
# *.reg text | ||
# *.rtf text | ||
# *.txt text | ||
# *.url text | ||
# *.xml text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*.scc | ||
*.dca | ||
*.oca | ||
*.obj | ||
vb*.tmp | ||
@PSC* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
Attribute VB_Name = "Ext" | ||
'Fileaccess for save/load | ||
|
||
Option Explicit | ||
Declare Function OSGetPrivateProfileInt Lib "KERNEL32" Alias "GetPrivateProfileIntA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal nDefault As Long, ByVal lpFileName As String) As Long | ||
Declare Function OSGetPrivateProfileSection Lib "KERNEL32" Alias "GetPrivateProfileSectionA" (ByVal lpAppName As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long | ||
Declare Function OSGetPrivateProfileString Lib "KERNEL32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long | ||
|
||
Declare Function OSWritePrivateProfileSection Lib "KERNEL32" Alias "WritePrivateProfileSectionA" (ByVal lpAppName As String, ByVal lpString As String, ByVal lpFileName As String) As Long | ||
Declare Function OSWritePrivateProfileString Lib "KERNEL32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long | ||
|
||
Declare Function OSGetProfileInt Lib "KERNEL32" Alias "GetProfileIntA" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal nDefault As Long) As Long | ||
Declare Function OSGetProfileSection Lib "KERNEL32" Alias "GetProfileSectionA" (ByVal lpAppName As String, ByVal lpReturnedString As String, ByVal nSize As Long) As Long | ||
Declare Function OSGetProfileString Lib "KERNEL32" Alias "GetProfileStringA" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long) As Long | ||
|
||
Declare Function OSWriteProfileSection Lib "KERNEL32" Alias "WriteProfileSectionA" (ByVal lpAppName As String, ByVal lpString As String) As Long | ||
Declare Function OSWriteProfileString Lib "KERNEL32" Alias "WriteProfileStringA" (ByVal lpszSection As String, ByVal lpszKeyName As String, ByVal lpszString As String) As Long | ||
Declare Function ExitWindowsEx Lib "user32" _ | ||
(ByVal uFlags As Long, ByVal dwReserved As Long) | ||
|
||
Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long | ||
|
||
Private Const nBUFSIZEINI = 1024 | ||
Private Const nBUFSIZEINIALL = 4096 | ||
Public Declare Function ReleaseCapture Lib "user32" () As Long | ||
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, _ | ||
ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long | ||
Public Const WM_NCLBUTTONDOWN = &HA1 | ||
' You can find more o these (lower) in the API Viewer. Here | ||
' they are used only for resizing the left and right | ||
Public Const HTLEFT = 10 | ||
Public Const HTRIGHT = 11 | ||
|
||
Public Function GetPrivateProfileString(ByVal szSection As String, ByVal szEntry As Variant, ByVal szDefault As String, ByVal szFileName As String) As String | ||
Dim szTmp As String | ||
Dim nRet As Long | ||
If (IsNull(szEntry)) Then | ||
szTmp = String$(nBUFSIZEINIALL, 0) | ||
nRet = OSGetPrivateProfileString(szSection, 0&, szDefault, szTmp, nBUFSIZEINIALL, szFileName) | ||
Else | ||
szTmp = String$(nBUFSIZEINI, 0) | ||
nRet = OSGetPrivateProfileString(szSection, CStr(szEntry), szDefault, szTmp, nBUFSIZEINI, szFileName) | ||
End If | ||
GetPrivateProfileString = Left$(szTmp, nRet) | ||
End Function | ||
|
||
Public Sub WritePrivateProfile(ByVal szSection As String, ByVal szEntry As Variant, ByVal vValue As Variant, ByVal szFileName As String) | ||
Dim nRet As Long | ||
If (IsNull(szEntry)) Then | ||
nRet = OSWritePrivateProfileString(szSection, 0&, 0&, szFileName) | ||
ElseIf (IsNull(vValue)) Then | ||
nRet = OSWritePrivateProfileString(szSection, CStr(szEntry), 0&, szFileName) | ||
Else | ||
nRet = OSWritePrivateProfileString(szSection, CStr(szEntry), CStr(vValue), szFileName) | ||
End If | ||
End Sub | ||
Public Function GetProfileString(ByVal szSection As String, ByVal szEntry As Variant, ByVal szDefault As String) As String | ||
Dim szTmp As String | ||
Dim nRet As Long | ||
If (IsNull(szEntry)) Then | ||
szTmp = String$(nBUFSIZEINIALL, 0) | ||
nRet = OSGetProfileString(szSection, 0&, szDefault, szTmp, nBUFSIZEINIALL) | ||
Else | ||
szTmp = String$(nBUFSIZEINI, 0) | ||
nRet = OSGetProfileString(szSection, CStr(szEntry), szDefault, szTmp, nBUFSIZEINI) | ||
End If | ||
GetProfileString = Left$(szTmp, nRet) | ||
End Function | ||
Public Function FileReal(Filename As String) As Boolean | ||
If Filename = "" Then | ||
FileReal = False | ||
Exit Function | ||
End If | ||
|
||
If LCase(Dir(Filename)) = LCase(GetFileName(Filename)) Then | ||
FileReal = True | ||
Else | ||
FileReal = False | ||
End If | ||
End Function | ||
Function GetFileName(fname As String) As String | ||
Dim i As Long | ||
|
||
On Error Resume Next | ||
For i = Len(fname) To 1 Step -1 | ||
If Mid(fname, i, 1) = "\" Then | ||
Exit For | ||
End If | ||
Next i | ||
GetFileName = Trim(Mid(fname, i + 1)) | ||
End Function | ||
|
||
Public Function CheckBMP(Filename As String) As Boolean | ||
If Right(Filename, 3) = "bmp" Then | ||
CheckBMP = True | ||
Exit Function | ||
End If | ||
If Right(Filename, 3) = "jpg" Then | ||
CheckBMP = True | ||
Exit Function | ||
End If | ||
If Right(Filename, 3) = "gif" Then | ||
CheckBMP = True | ||
Exit Function | ||
End If | ||
If Right(Filename, 4) = "jpeg" Then | ||
CheckBMP = True | ||
Exit Function | ||
End If | ||
CheckBMP = False | ||
End Function | ||
|
||
|
||
|
||
|
||
Public Sub MoveForm(f As Form) | ||
ReleaseCapture | ||
SendMessage f.hWnd, WM_NCLBUTTONDOWN, 2, 0 | ||
End Sub | ||
|
Oops, something went wrong.