Mail模組雜記2 doc

2021-03-31 08:57:00 字數 3566 閱讀 4243

l

獲得hicon

lexstyle

的獲得

dword dwexstyle = lvs_ex_fullrowselect | lvs_ex_gridlines | /*lvs_ex_subitemimages |*/

m_list1.setextendedstyle(lvs_ex_fullrowselect|lvs_ex_gridlines);

extended list-view styles l

標準的list初始

static const struct

coldata = , ,

, ,

,};

const int ncolcount = sizeof coldata / sizeof coldata[0];

for (int ncolumn = 3; ncolumn < ncolcount; ncolumn++)

l命令的定義

/// //

//

head of all ***mands //

///

#define

dir_cmd_base

0x00000000

typedef

struct

_tag_cmd_head ;

}

cmd_head

, *pcmd_head;

///

// this message is from mail client to dir-server :

//upload a attach file:

///

#define cmd_mail_clt_upload_file_req

dir_cmd_base+4019

typedef struct _tag_cmd_mail_clt_upload_file_req ;

}

cmd_mail_clt_upload_file_req, *pcmd_mail_clt_upload_file_req;

#define cmd_mail_clt_upload_file_ret

dir_cmd_base+4020

typedef struct _tag_cmd_mail_clt_upload_file_ret

cmd_mail_clt_upload_file_ret, *pcmd_mail_clt_upload_file_ret; 使用

cmd_mail_update_req

strtemp;

strtemp

.dwcltexistedmails

=12345;

pcmd_head

phead

= (pcmd_head

)new

byte

[sizeof

(cmd_head

)+sizeof

(cmd_mail_update_req

)];

memset

(phead

, 0,

sizeof

(cmd_head

)+sizeof

(cmd_mail_update_req

));

phead

->

dwcmd

= cmd_mail_update_req;

phead

->

nbufsize

= sizeof

(cmd_head

)+ sizeof

(cmd_mail_update_req);

memcpy

(phead

->

pbuf

, &strtemp

, sizeof

(cmd_mail_update_req

));

trace

("[cltmail]-----ready to send cmd_mail_update_req!");

if(

false

==m_ptransclt

->

sendtoserver

(phead

, phead

->

nbufsize

))

else

trace

("[cltmail]-----send cmd_mail_update_req success!");

lclable

可以改變標籤底色

m_staticrenewpwd.settextcolor(rgb(0, 0, 0)).settransparent(true);

m_staticoldpwd.settextcolor(rgb(0, 0, 0)).settransparent(true);

m_stati**ewpwd.settextcolor(rgb(0, 0, 0)).settransparent(true);

cadvancedbutton

m_btnclose;

cadvancedbutton

m_btnquit;

cadvancedbutton

m_b***ownloadfile;

cadvancedbutton

m_btnuploadfile;

cadvancedbutton

m_btnaddcontact;

cadvancedbutton

m_btnsendmail; l

移動自己定義的視窗

void maillistdlg::onmousemove(uint nflags, cpoint point)

cdialog::onmousemove(nflags, point); }

l

設定透明區域

//paint the ***mon control

crect rect(0,0,0,0);

getwindowrect(&rect);

m_hrgn = createwndrgn(rect.width(),rect.height());

setwindowrgn(m_hrgn,true);

setwindowpos(null,rect.left,rect.top,rect.width(),rect.height(),sw_show);

m_btnclose.create(rect.width() - 27, 4,

m_pbitmap,

crect(dlg_btn_close_tl_x,dlg_btn_close_tl_y,dlg_btn_close_br_x-1,dlg_btn_close_br_y),

idcancel,

this);

hrgn createwndrgn(int nwidth,int nheight);

void

maillistdlg

::onpaint

()

}

bool

writemaildlg

::initreaddialog

()

程式設計雜記2

1.編譯的時候輸出資訊 pragma message compiling threadmodel.h.2.作業系統版本不對輸出出錯資訊 ifndef windows error windows.h should be included first endif 3.interlockedincreme...

css雜記 css相容處理雜記 2

1 ie上對於沒有內容的a標籤,使用display block會失效 解決辦法 給這個a設一個背景色 然後透明度調成透明即可 2 css強制換行 word wrap break word 3 css一行太長,最後用省略號表示 display inline block text overflow el...

Python 學習雜記2

類屬性 class myclass object a 0.def init self myclass.a 1 a myclass b myclass a.a2 myclass a2 b.a2 a.a 1 a.a1 myclass a2 myclass.a 10 b.a 10 python中 物件屬性...

Angular開發雜記 模組代替頁面

嘗試把原來的專案改造成angular實現,其中一個特性 原來是主頁放一個iframe 然後iframe裡面連結多個頁面。現在使用angular,是採用單頁,即主頁放一個div,然後每個頁面變成模組,載入到div顯示。區別是,第1種 原始頁面方式 每個頁面都要定義頁面,載入js和css,像這樣 第2種...

Django 專案中使用自帶的 mail 模組

一 配置 在專案的 settings.py 檔案新增以下配置項 郵件配置 email host 設定郵件域名 email port 25 設定埠號,為數字 email host user 設定發件人郵箱 email host password 設定發件人 授權碼 email user tls tru...