亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? winmine.cls

?? 一個用vb做的掃雷源馬
?? CLS
?? 第 1 頁 / 共 4 頁
字號:
                intColStart = Asc(mfrmDisplay.lstSortedX.List(x))
                If intColStart <= 57 Then
                    intColStart = intColStart - 48
                ElseIf intColStart >= 65 Then
                    intColStart = intColStart - 55
                End If
                
                intColEnd = Asc(mfrmDisplay.lstSortedX.List(x + 1))
                If intColEnd <= 57 Then
                    intColEnd = intColEnd - 48
                ElseIf intColEnd >= 65 Then
                    intColEnd = intColEnd - 55
                End If
                
                intC1 = intColStart * mintButtonWidth
                intDx = intColEnd - intColStart + 1
                intWidth = intDx * mintButtonWidth

                mfrmDisplay.PaintPicture mfrmDisplay.imgOpenBlocks, intC1, intR1, , , 0, 0, intWidth, mintButtonHeight
        
                For i = 0 To intDx - 1
                    
                    If mbytMarked(y, intColStart + i) > NONE Then
                        
                        If mbytMarked(y, intColStart + i) = QUESTION Then
                            mfrmDisplay.PaintPicture mfrmDisplay.imgQuestion, intC1 + i * mintButtonWidth, intR1
                        Else
                            mfrmDisplay.PaintPicture mfrmDisplay.imgFlag, intC1 + i * mintButtonWidth, intR1
                        End If
                    
                    ElseIf mbytMineStatus(y, intColStart + i) > NONE Then
                        
                        mfrmDisplay.CurrentX = intC1 + i * mintButtonWidth
                        mfrmDisplay.CurrentY = intR1
                        
                        If mbytMineStatus(y, intColStart + i) >= BEEN Then
                            mfrmDisplay.ForeColor = QBColor(mbytMineStatus(y, intColStart + i) - BEEN)
                            mfrmDisplay.Print mbytMineStatus(y, intColStart + i) - BEEN
                        ElseIf mbytMineStatus(y, intColStart + i) = MINE Then
                             mfrmDisplay.PaintPicture mfrmDisplay.imgButton, intC1 + i * mintButtonWidth, intR1
                        Else
                            mfrmDisplay.ForeColor = QBColor(mbytMineStatus(y, intColStart + i))
                            mfrmDisplay.Print mbytMineStatus(y, intColStart + i)
                            mbytMineStatus(y, intColStart + i) = mbytMineStatus(y, intColStart + i) + BEEN
                        End If
                    
                    End If
                    
                Next
                
            Next
        
            ' clear the listbox for the next scanline collection
            mfrmDisplay.lstSortedX.Clear
            
        End If
        
    Next

End Sub
'***************************************************************************************'
'                                                                                       '
' Purpose:  Resizes the main display form to fit the currently chosen game level's      '
'           minefield dimensions.                                                       '
'                                                                                       '
' Inputs:   None                                                                        '
' Returns:  None                                                                        '
'                                                                                       '
'***********************************************************************************'***'
Private Sub ResizeDisplay()
    
    ' set the form dimensions
    mfrmDisplay.ScaleMode = 1
    mfrmDisplay.Width = mfrmDisplay.Width - mfrmDisplay.ScaleWidth + mintCols * mintButtonWidth * Screen.TwipsPerPixelX
    mfrmDisplay.Height = mfrmDisplay.Height - mfrmDisplay.ScaleHeight + mintRows * mintButtonHeight * Screen.TwipsPerPixelY + mfrmDisplay.lblMinesLeft.Height
    
    ' set the label (that displays the number of mines left) dimensions
    mfrmDisplay.lblMinesLeft.Left = 0
    mfrmDisplay.lblMinesLeft.TOP = mfrmDisplay.ScaleHeight - mfrmDisplay.lblMinesLeft.Height
    mfrmDisplay.lblMinesLeft.Width = mfrmDisplay.ScaleWidth
    mfrmDisplay.lblMinesLeft = "Mines Left : " & mbytNumMines
    
    mfrmDisplay.ScaleMode = 3

End Sub
'***********************************************************************************'
'                                                                                   '
' Purpose:  Determines over which square the mouse curser is, at present, while the '
'           left mouse button is pressed, and takes action accordingly. Called from '
'           the MouseMove event of the main display form                            '
'                                                                                   '
' Inputs:   intButton:  The mouse button clicked (left or right\middle)             '
'           inX:        X co-ordinate of mouse cursor position                      '
'           inY:        Y co-ordinate of mouse cursor position                      '
'                                                                                   '
' Returns:  None                                                                    '
'                                                                                   '
'***********************************************************************************'
Public Sub TrackHitTest(intButton As Integer, intX As Single, intY As Single)

    Dim blnLeftDown As Boolean
    blnLeftDown = (intButton And LEFT_BUTTON) > 0
    
    ' If left mouse button pressed ...
    If blnLeftDown Then
        
        ' abort, if not currently processing a mouse click
        If Not mblnHitTestBegun Then Exit Sub

        ' calculate the grid co-ords from the mouse co-ords
        intX = Int(intX / mintButtonWidth)
        intY = Int(intY / mintButtonHeight)

        ' abort, if the square over which the mouse cursor is currently
        ' over is outside the minefield
        If intX >= mintCols Or intY >= mintRows Or intX < 0 Or intY < 0 Then
            mfrmDisplay.imgQsPressed.Visible = False
            mfrmDisplay.imgPressed.Visible = False
            Exit Sub
        End If

        ' abort, if current square has been marked with a flag
        If mbytMarked(intY, intX) >= FLAGGED Then
            mfrmDisplay.imgQsPressed.Visible = False
            mfrmDisplay.imgPressed.Visible = False
            Exit Sub
        End If

        Dim intRowOld As Integer
        Dim intColOld As Integer
        
        ' store previous grid location of cursor
        intRowOld = mintRow
        intColOld = mintCol

        ' calculate current grid co-ords of mouse cursor
        mintCol = intX * mintButtonWidth
        mintRow = intY * mintButtonHeight

        ' Display current square as pressed, only if previous grid co-ords
        ' are not same as current grid co-ords
        If intRowOld = mintRow And intColOld = mintCol Then
            If mfrmDisplay.imgPressed.Visible Or mfrmDisplay.imgQsPressed.Visible Then
                Exit Sub
            End If
        End If
        
        ' abort, if current square already opened
        If mbytMineStatus(intY, intX) >= BEEN Then
            mfrmDisplay.imgPressed.Visible = False
            mfrmDisplay.imgQsPressed.Visible = False
            Exit Sub
        End If
        
        ' if current square is unmarked, or ambiguously marked display the
        ' corresponding square as pressed while the mouse cursor is over it
        ' and the left mouse button is pressed
        If mbytMarked(intY, intX) = QUESTION Then
            mfrmDisplay.imgPressed.Visible = False
            mfrmDisplay.imgQsPressed.Visible = False
            mfrmDisplay.imgQsPressed.Left = mintCol
            mfrmDisplay.imgQsPressed.TOP = mintRow
            mfrmDisplay.imgQsPressed.Visible = True
        Else
            mfrmDisplay.imgQsPressed.Visible = False
            mfrmDisplay.imgPressed.Visible = False
            mfrmDisplay.imgPressed.Left = mintCol
            mfrmDisplay.imgPressed.TOP = mintRow
            mfrmDisplay.imgPressed.Visible = True
        End If
    
    End If
    
End Sub
'***************************************************************************************'
'                                                                                       '
' Purpose:  Called when an object of type clsWinMine is instantiated. Initializes       '
'           game variables and flags and sets up the minefield                          '
'                                                                                       '
' Inputs:   None                                                                        '
' Returns:  None                                                                        '
'                                                                                       '
'***********************************************************************************'***'
Private Sub Class_Initialize()

    mbytNumMines = 10
    mbytCorrectHits = 0
    mbytTotalHits = 0
    
    mintRows = 8
    mintCols = 8
    mintRow = -1
    mintCol = -1
    
    mblnNewGame = False
    mblnHitTestBegun = False
    Set mfrmDisplay = Nothing
    
    ' Calculate random mine locations
    InitializeMineField
    
End Sub
'***************************************************************************************'
'                                                                                       '
' Purpose:  Checks to see if the specified number of rows, columns and mines for the    '
'           currently chosen game level is within limits and stores them in the         '
'           appropriate class properties.                                               '
'                                                                                       '
' Inputs:   intRows:        Number of rows in the minefield                             '
'           intCols:        Number of columns in the minefield                          '
'           bytMines:       Number of mines in the minefield                            '
'           blnLevelCustom: True if game level is custom; False otherwise               '
'                                                                                       '
' Returns:  None                                                                        '
'                                                                                       '
'***********************************************************************************'***'
Public Sub SetMineFieldDimension(intRows As Integer, intCols As Integer, bytMines As Byte, blnLevelCustom As Boolean)
    
    mintRows = intRows
    If intRows < MIN_ROWS Then mintRows = MIN_ROWS
    If intRows > MAX_ROWS Then mintRows = MAX_ROWS
        
    mintCols = intCols
    If intCols < MIN_COLS Then mintCols = MIN_COLS
    If intCols > MAX_COLS Then mintCols = MAX_COLS

    mbytNumMines = bytMines
    If blnLevelCustom Then
        Dim intMines As Integer
        intMines = (mintRows * mintCols) \ 5
        If bytMines < intMines Then
            mbytNumMines = intMines
            bytMines = intMines
        ElseIf bytMines > (intMines * 4) \ 3 Then
            mbytNumMines = (intMines * 4) \ 3
            bytMines = mbytNumMines
        End If
    End If
    
    If bytMines < MIN_MINES Then mbytNumMines = MIN_MINES
    If bytMines > MAX_MINES Then mbytNumMines = MAX_MINES
    
    ' clear the current display to start new game
    mfrmDisplay.Cls
    
    ' Adjust the display form size according to the new minefield dimensions
    ResizeDisplay
    
End Sub
'***************************************************************************************'
'                                                                                       '
' Purpose:  Called when the instance of the clsWinMine object is set to nothing when    '
'           the program terminates. Frees memory used for dynamically allocated arrays  '
'           and empties the collection of Wrong Mine locations.                         '
'                                                                                       '
' Inputs:   None                                                                        '
' Returns:  None                                                                        '
'                                                                                       '
'***********************************************************************************'***'
Private Sub Class_Terminate()
    
    Erase mbytMineStatus
    Erase mbytMarked
    Erase mbytMineLocations
    
    Dim i As Integer            ' Loop counter
    
    For i = 1 To mcolWrongLocations.Count
        mcolWrongLocations.Remove 1
    Next

End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
aaa亚洲精品| 国产真实乱对白精彩久久| 在线观看成人免费视频| 亚洲免费观看视频| 欧美日韩大陆一区二区| 日韩高清在线电影| 日韩精品一区二区在线| 国产福利91精品一区二区三区| 欧美韩日一区二区三区四区| 99久久精品99国产精品| 亚洲午夜激情av| 精品美女一区二区三区| www.av精品| 日韩高清电影一区| 久久精品一区二区三区四区| 99久精品国产| 免费高清成人在线| 国产精品视频观看| 欧美日韩国产高清一区| 国产一区二区三区香蕉| 亚洲精品久久7777| 欧美一区二区视频网站| 国产精品影视天天线| 亚洲欧美一区二区三区国产精品| 欧美日韩精品系列| 成人一区二区在线观看| 性感美女极品91精品| 久久久噜噜噜久久人人看 | 国产精品久久久久久久浪潮网站 | 看电视剧不卡顿的网站| 国产精品视频一二三| 欧美日韩你懂的| jiyouzz国产精品久久| 免费在线观看一区二区三区| 欧美激情一区在线观看| 日韩一二三四区| 在线欧美日韩国产| 成人免费看片app下载| 日韩和欧美一区二区三区| 国产精品理论在线观看| 精品国产乱码久久久久久久久| 在线国产电影不卡| 丰满白嫩尤物一区二区| 日本aⅴ免费视频一区二区三区| 亚洲人精品一区| 国产欧美一二三区| 精品三级av在线| 91精品一区二区三区久久久久久| 色综合天天性综合| 国产91精品免费| 美女国产一区二区| 日韩av电影一区| 午夜欧美大尺度福利影院在线看| 亚洲欧洲成人自拍| 欧美国产精品v| 久久精品亚洲一区二区三区浴池 | 国产资源在线一区| 午夜一区二区三区在线观看| 国产精品视频一二三| xvideos.蜜桃一区二区| 欧美一级在线免费| 91麻豆精品国产91久久久使用方法 | 美女性感视频久久| 亚洲国产日韩一级| 亚洲精品高清在线观看| 亚洲欧美日韩人成在线播放| 国产精品免费视频观看| 欧美高清在线精品一区| 国产日韩精品一区| 国产午夜久久久久| 日本一区二区久久| 国产精品乱码人人做人人爱 | 国产一区91精品张津瑜| 精品一区二区成人精品| 精品一区二区免费| 极品少妇一区二区| 国产乱国产乱300精品| 国产盗摄女厕一区二区三区| 国产一区二区导航在线播放| 久久精品国产**网站演员| 久久国产三级精品| 韩国精品主播一区二区在线观看| 久久99久久99小草精品免视看| 久久成人av少妇免费| 国产电影精品久久禁18| av资源网一区| 91成人国产精品| 欧美日韩精品欧美日韩精品一综合| 欧美男男青年gay1069videost | 国产99久久久精品| 成人福利在线看| 色老汉一区二区三区| 在线观看亚洲一区| 日韩视频免费直播| 中文在线一区二区| 一区二区三区在线观看视频| 午夜伦欧美伦电影理论片| 日韩黄色小视频| 国产成人综合在线| 在线精品亚洲一区二区不卡| 538在线一区二区精品国产| 精品国免费一区二区三区| 国产精品久久久久久久裸模| 香蕉影视欧美成人| 国产精品影视在线观看| 欧美在线观看你懂的| 精品国产一区二区三区不卡| 中文字幕一区日韩精品欧美| 视频一区欧美精品| 国产不卡免费视频| 欧美午夜寂寞影院| 2020日本不卡一区二区视频| 中文字幕一区二区5566日韩| 日韩一区精品视频| caoporen国产精品视频| 欧美老人xxxx18| 中文乱码免费一区二区| 日韩中文字幕一区二区三区| 国产suv精品一区二区6| 欧美吻胸吃奶大尺度电影| 国产亚洲精品久| 婷婷中文字幕综合| 成人手机电影网| 日韩精品一区二区三区在线| 曰韩精品一区二区| 国产高清无密码一区二区三区| 欧美日本视频在线| 亚洲欧洲另类国产综合| 国产一区二区三区精品欧美日韩一区二区三区| 99在线热播精品免费| 欧美精品一区二区三区四区| 夜夜精品浪潮av一区二区三区| 国产成人在线视频网址| 欧美一区二区三区免费大片| 亚洲欧美电影院| 国产宾馆实践打屁股91| 欧美一区二区三区四区五区| 亚洲精品视频观看| 春色校园综合激情亚洲| 精品盗摄一区二区三区| 午夜私人影院久久久久| 91成人网在线| 亚洲色图欧美偷拍| 国产91色综合久久免费分享| 欧美成人精品二区三区99精品| 亚洲国产视频一区| 色国产精品一区在线观看| 《视频一区视频二区| 国产成人在线视频网址| www国产精品av| 久久99国产精品久久99| 欧美日韩国产高清一区二区三区 | 日韩一卡二卡三卡四卡| 性欧美疯狂xxxxbbbb| 欧美天天综合网| 亚洲精品日韩一| 在线亚洲一区观看| 亚洲色大成网站www久久九九| 高清国产一区二区| 久久久精品国产免费观看同学| 麻豆国产91在线播放| 日韩欧美中文字幕一区| 久久激情五月婷婷| 日韩欧美色综合网站| 美国三级日本三级久久99| 91精品免费观看| 免费观看成人av| 精品国产乱码久久久久久牛牛| 麻豆国产精品一区二区三区| 日韩女优av电影在线观看| 久久精品国产精品亚洲综合| 精品国产1区二区| 国产91丝袜在线观看| 国产精品电影院| 欧美在线播放高清精品| 亚洲高清免费观看高清完整版在线观看 | 性久久久久久久| 欧美一区二区成人6969| 国内精品伊人久久久久av影院| 亚洲精品一区二区三区福利| 国产宾馆实践打屁股91| 亚洲日本电影在线| 日本高清不卡视频| 亚洲va中文字幕| 日韩欧美亚洲国产精品字幕久久久 | 欧美美女一区二区在线观看| 日韩一区精品字幕| 欧美精品一区二区三区高清aⅴ | 亚洲乱码中文字幕| 欧美午夜精品电影| 久久99精品久久久久久久久久久久 | 色综合天天综合网天天狠天天 | 亚洲欧美日韩中文播放 | 国产+成+人+亚洲欧洲自线| 国产精品福利在线播放| 欧美日韩精品一区二区天天拍小说| 美腿丝袜一区二区三区| 日韩美女久久久| 91精品国产色综合久久久蜜香臀| 国产成人免费xxxxxxxx|