我有BCB代码,你要吗?如果需要,给我发email。
解决方案 »
- delphi error creating form:未指定错误
- 光标如何从括号里跳到下一行
- 请教:quickreport做报表,打印浏览时第一张表有抬头。第二张就没有title了。应该如何设置。另外,横竖表格线应该怎样画。
- 关于imagelist的问题
- MDI模式下的子窗体要怎么定义里面的变量。
- 关于线程的问题,急急急!!
- 一个窗口的问题,大家进来看看……希望得到您的解答。
- 小写转大写的有关问题
- <<<<<<没有笑话了,求解skinengine278在d6的安装问题。
- 寻installshield 6.30的汉化包或中文语言包,谢
- 如何使用SQL语句
- 如何用Delphi得到服务器的时间和日期
Case WM_MEASUREITEM
If wParam = 0 Then 'if the message is send by the OwnerDrawMenu
Dim a As Long
a = 128 'fill the itemWidth
CopyMemory ByVal VarPtr(lParam) + 12, a, 4
a = 35 'fill the itemHeight
CopyMemory ByVal VarPtr(lParam) + 16, a, 4
Exit Function
End If 'if wParam=0Case WM_DRAWITEM
If wParam = 0 Then 'if the message send by OwnDrawMenu
'let myMenuStruct remember the DRAWITEMSTRUCT
CopyMemory myMenuStruct, lParam, 48
If myMenuStruct.itemID = 2 Then
Select Case myMenuStruct.itemState
Case ODS_SELECTED 'Menu selected
strMenuTitle = "Open Data "
DrawHilight strMenuTitle, HilightOpenData
Exit Function
...........
Sub DrawHilight(str As String, myIcon As Picture)
Dim hdcMem As Long
Dim OldBitmap As Long
With myMenuStruct
hdcMem = CreateCompatibleDC(0&)
OldBitmap = SelectObject(hdcMem, myIcon.Handle)
Call BitBlt(.hDC, .rcItem.Left, .rcItem.Top, 140, 35, hdcMem, 0, 0, SRCCOPY)
Call SelectObject(hdcMem, OldBitmap)
Call DeleteObject(OldBitmap)
End With
End Sub
给我一份源码,不胜感激!To Email: [email protected]
给我一份源码,不胜感激!To Email: [email protected]