Changeset 761 in dev


Ignore:
Timestamp:
Oct 22, 2008, 1:26:09 AM (16 years ago)
Author:
イグトランス (egtra)
Message:

SetFontDialog関数でバッファの扱いがおかしかったのを修正。ついでに、ダイアログプロシージャの戻り値のBOOL→INT_PTR化。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/abdev/DialogBoxes.cpp

    r718 r761  
    3838    if(bFixedPitchOnly) cf.Flags|=CF_FIXEDPITCHONLY|CF_NOVERTFONTS;
    3939    cf.nFontType=SCREEN_FONTTYPE;
    40     lstrcpy((char *)cf.lpTemplateName,"Font select");
     40    cf.lpTemplateName = TEXT("Font select");
    4141
    4242    if(!ChooseFont(&cf)) return 0;
    4343
    44     memcpy(lf,&lfDummy,sizeof(LOGFONT));
     44    *lf = lfDummy;
    4545
    4646    if(lpiPointSize) *lpiPointSize=cf.iPointSize;
     
    288288#endif
    289289}
    290 BOOL CALLBACK DlgNewProject_Page3(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     290INT_PTR CALLBACK DlgNewProject_Page3(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    291291    char buffer[GENERAL_SIZE];
    292292    LPPSHNOTIFY lpPshNotify;
     
    315315    return 0;
    316316}
    317 BOOL CALLBACK DlgNewProject_Page2(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     317INT_PTR CALLBACK DlgNewProject_Page2(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    318318    extern NEWPROJECTINFO NewProjectInfo;
    319319    LPPSHNOTIFY lpPshNotify;
     
    378378    ShowWindow(GetDlgItem(hDlg,IDC_IMAGE_DIRECTX),nCmd);
    379379}
    380 BOOL CALLBACK DlgNewProject_Page1(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     380INT_PTR CALLBACK DlgNewProject_Page1(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    381381    extern NEWPROJECTINFO NewProjectInfo;
    382382    int i;
     
    584584
    585585#ifndef THETEXT
    586 BOOL CALLBACK DlgNewFile(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     586INT_PTR CALLBACK DlgNewFile(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    587587    extern char NewFileName[MAX_PATH];
    588588
     
    798798    projectInfo.modify=1;
    799799}
    800 BOOL CALLBACK DlgProjectOption_Whole(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     800INT_PTR CALLBACK DlgProjectOption_Whole(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    801801    NMHDR *nmhdr;
    802802
     
    833833    return 0;
    834834}
    835 BOOL CALLBACK DlgProjectOption_Win32API(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     835INT_PTR CALLBACK DlgProjectOption_Win32API(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    836836    NMHDR *nmhdr;
    837837
     
    871871    return 0;
    872872}
    873 BOOL CALLBACK DlgProjectOption_Manifest(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     873INT_PTR CALLBACK DlgProjectOption_Manifest(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    874874    switch(message){
    875875        case WM_INITDIALOG:
     
    919919    return 0;
    920920}
    921 BOOL CALLBACK DlgProjectOption_Debug(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     921INT_PTR CALLBACK DlgProjectOption_Debug(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    922922    NMHDR *nmhdr;
    923923    char temporary[MAX_PATH];
     
    11171117    return;
    11181118}
    1119 BOOL CALLBACK Dlg_Option_Whole(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     1119INT_PTR CALLBACK Dlg_Option_Whole(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    11201120    NMHDR *nmhdr;
    11211121    switch(message){
     
    11991199    return 0;
    12001200}
    1201 BOOL CALLBACK Dlg_Option_Editor(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     1201INT_PTR CALLBACK Dlg_Option_Editor(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    12021202    extern METHODCHECKINFO MethodCheckInfo;
    12031203    char str[255];
     
    15681568}
    15691569#endif
    1570 BOOL CALLBACK Dlg_Option_Color(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     1570INT_PTR CALLBACK Dlg_Option_Color(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    15711571    int iPos;
    15721572    CTheme *pobj_Theme;
     
    18331833    return 0;
    18341834}
    1835 BOOL CALLBACK Dlg_Option_Toolbar(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     1835INT_PTR CALLBACK Dlg_Option_Toolbar(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    18361836    switch(message){
    18371837        case WM_INITDIALOG:
     
    18901890    return 0;
    18911891}
    1892 BOOL CALLBACK Dlg_Option_Rad(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     1892INT_PTR CALLBACK Dlg_Option_Rad(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    18931893    NMHDR *nmhdr;
    18941894    switch(message){
     
    20192019    PropertySheet(&psh);
    20202020}
    2021 BOOL CALLBACK DialogAbout(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     2021INT_PTR CALLBACK DialogAbout(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    20222022    if(message==WM_INITDIALOG){
    20232023        SetPosCenter(hwnd);
Note: See TracChangeset for help on using the changeset viewer.