MF 的个人资料CMF.net照片日志列表更多 ![]() | 帮助 |
|
12月17日 在 對話方塊 標題列 上 加入 圖示DialogBox Title Bar Add ICON
程式碼區塊
#include "resource.h" BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); HWND g_Dlg_hWnd = NULL;
hIcon1 = (HICON) LoadImage( hInstance, MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON,
BOOL CALLBACK DialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
12月11日 VB.NET 在 執行時期 顯示 屬性編輯視窗Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim PG As New System.Windows.Forms.PropertyGrid()
Dim PGW As New Form
PGW.Owner = Me
PGW.StartPosition = FormStartPosition.Manual PGW.Left = Me.Left + Me.Width PGW.Top = Me.Top PGW.ShowInTaskbar = False PGW.Controls.Add(PG) PG.Dock = DockStyle.Fill PG.SelectedObject = Me.Label1 PGW.Text = "Label1 的 屬性編輯視窗"
PGW.Show()
End Sub
End Class |
|
|