379 | | if(GetWindowTextLength(GetDlgItem(hwnd,IDC_WINDOWNAME))==0){ |
380 | | //MsgBox "ウィンドウ識別名を入力して下さい。" |
381 | | MessageBox(hOwner,STRING_WINDOW_RENAME_MUST_WINDOWNAME,APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION); |
382 | | break; |
383 | | } |
384 | | if(GetWindowTextLength(GetDlgItem(hwnd,IDC_WINDOWHANDLE))==0){ |
385 | | //MsgBox "ハンドル名を入力して下さい。" |
386 | | MessageBox(hOwner,STRING_WINDOW_RENAME_MUST_HANDLENAME,APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION); |
387 | | break; |
388 | | } |
389 | | if(GetWindowTextLength(GetDlgItem(hwnd,IDC_WINDOWPROC))==0){ |
390 | | //MsgBox "プロシージャ名を入力して下さい。" |
391 | | MessageBox(hOwner,STRING_WINDOW_RENAME_MUST_PROCEDURENAME,APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION); |
392 | | break; |
393 | | } |
394 | | |
395 | | i=GetWndNum(GetWindow(hClient,GW_CHILD)); |
396 | | i2=GetWndInfoNum(MdiInfo[i].path); |
397 | | |
398 | | RAD_UNDOSTATE_NAME names,NoticeNames; |
399 | | i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_WINDOWNAME))+1; |
400 | | names.name=(char *)HeapAlloc(hHeap,0,i3); |
401 | | GetDlgItemText(hwnd,IDC_WINDOWNAME,names.name,i3); |
402 | | |
403 | | i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_WINDOWHANDLE))+1; |
404 | | names.HandleName=(char *)HeapAlloc(hHeap,0,i3); |
405 | | GetDlgItemText(hwnd,IDC_WINDOWHANDLE,names.HandleName,i3); |
406 | | |
407 | | i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_WINDOWPROC))+1; |
408 | | names.CallBackName=(char *)HeapAlloc(hHeap,0,i3); |
409 | | GetDlgItemText(hwnd,IDC_WINDOWPROC,names.CallBackName,i3); |
410 | | |
411 | | if(lstrcmp(names.name,ProjectInfo.pWindowInfo[i2].name)==0&& |
412 | | lstrcmp(names.HandleName,ProjectInfo.pWindowInfo[i2].HandleName)==0&& |
413 | | lstrcmp(names.CallBackName,ProjectInfo.pWindowInfo[i2].CallBackName)==0){ |
414 | | HeapDefaultFree(names.name); |
415 | | HeapDefaultFree(names.HandleName); |
416 | | HeapDefaultFree(names.CallBackName); |
417 | | SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); |
| 381 | { |
| 382 | if(GetWindowTextLength(GetDlgItem(hwnd,IDC_WINDOWNAME))==0){ |
| 383 | //MsgBox "ウィンドウ識別名を入力して下さい。" |
| 384 | MessageBox(hOwner,STRING_WINDOW_RENAME_MUST_WINDOWNAME,APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION); |
| 385 | break; |
| 386 | } |
| 387 | if(GetWindowTextLength(GetDlgItem(hwnd,IDC_WINDOWHANDLE))==0){ |
| 388 | //MsgBox "ハンドル名を入力して下さい。" |
| 389 | MessageBox(hOwner,STRING_WINDOW_RENAME_MUST_HANDLENAME,APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION); |
| 390 | break; |
| 391 | } |
| 392 | if(GetWindowTextLength(GetDlgItem(hwnd,IDC_WINDOWPROC))==0){ |
| 393 | //MsgBox "プロシージャ名を入力して下さい。" |
| 394 | MessageBox(hOwner,STRING_WINDOW_RENAME_MUST_PROCEDURENAME,APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION); |
| 395 | break; |
| 396 | } |
| 397 | |
| 398 | i=GetWndNum(GetWindow(hClient,GW_CHILD)); |
| 399 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 400 | |
| 401 | RAD_UNDOSTATE_NAME names,NoticeNames; |
| 402 | i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_WINDOWNAME))+1; |
| 403 | names.name=(char *)HeapAlloc(hHeap,0,i3); |
| 404 | GetDlgItemText(hwnd,IDC_WINDOWNAME,names.name,i3); |
| 405 | |
| 406 | i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_WINDOWHANDLE))+1; |
| 407 | names.HandleName=(char *)HeapAlloc(hHeap,0,i3); |
| 408 | GetDlgItemText(hwnd,IDC_WINDOWHANDLE,names.HandleName,i3); |
| 409 | |
| 410 | i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_WINDOWPROC))+1; |
| 411 | names.CallBackName=(char *)HeapAlloc(hHeap,0,i3); |
| 412 | GetDlgItemText(hwnd,IDC_WINDOWPROC,names.CallBackName,i3); |
| 413 | |
| 414 | if(lstrcmp(names.name,pWindowInfo->name)==0&& |
| 415 | lstrcmp(names.HandleName,pWindowInfo->HandleName)==0&& |
| 416 | lstrcmp(names.CallBackName,pWindowInfo->CallBackName)==0){ |
| 417 | HeapDefaultFree(names.name); |
| 418 | HeapDefaultFree(names.HandleName); |
| 419 | HeapDefaultFree(names.CallBackName); |
| 420 | SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); |
| 421 | return 1; |
| 422 | } |
| 423 | |
| 424 | //MsgBox "これらのウィンドウ識別名を変更すると、ソースコード内の識別子は手動で変換する必要があります。変更しますか?" |
| 425 | if(IDCANCEL==MessageBox(hwnd,STRING_WINDOW_RENAME_CHECK,APPLICATION_NAME,MB_OKCANCEL|MB_ICONEXCLAMATION)) return 1; |
| 426 | |
| 427 | //変更情報を更新 |
| 428 | NoticeNames.name=pWindowInfo->name; |
| 429 | NoticeNames.HandleName=pWindowInfo->HandleName; |
| 430 | NoticeNames.CallBackName=pWindowInfo->CallBackName; |
| 431 | Rad_NoticeChanging(i,RAD_UNDO_NAME,SELECT_WINDOW,(DWORD)&NoticeNames); |
| 432 | |
| 433 | HeapDefaultFree(pWindowInfo->name); |
| 434 | pWindowInfo->name=names.name; |
| 435 | GlobalFree(MdiInfo[i].path); |
| 436 | MdiInfo[i].path=(char *)GlobalAlloc(GMEM_FIXED,lstrlen(names.name)); |
| 437 | lstrcpy(MdiInfo[i].path,names.name); |
| 438 | |
| 439 | HeapDefaultFree(pWindowInfo->HandleName); |
| 440 | pWindowInfo->HandleName=names.HandleName; |
| 441 | |
| 442 | HeapDefaultFree(pWindowInfo->CallBackName); |
| 443 | pWindowInfo->CallBackName=names.CallBackName; |
| 444 | |
| 445 | EndDialog(hwnd,1); |
483 | | SetPosCenter(hwnd); |
484 | | i=GetWndNum(GetWindow(hClient,GW_CHILD)); |
485 | | i2=GetWndInfoNum(MdiInfo[i].path); |
486 | | if(ProjectInfo.pWindowInfo[i2].ExStyle&WS_EX_TOPMOST) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOPMOST,BM_SETCHECK,BST_CHECKED,0); |
487 | | if(ProjectInfo.pWindowInfo[i2].ExStyle&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0); |
488 | | if(ProjectInfo.pWindowInfo[i2].ExStyle&WS_EX_TRANSPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_SETCHECK,BST_CHECKED,0); |
489 | | if(ProjectInfo.pWindowInfo[i2].ExStyle&WS_EX_TOOLWINDOW) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOOLWINDOW,BM_SETCHECK,BST_CHECKED,0); |
490 | | if(ProjectInfo.pWindowInfo[i2].ExStyle&WS_EX_CLIENTEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_SETCHECK,BST_CHECKED,0); |
491 | | if(ProjectInfo.pWindowInfo[i2].ExStyle&WS_EX_STATICEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_SETCHECK,BST_CHECKED,0); |
492 | | if(ProjectInfo.pWindowInfo[i2].ExStyle&WS_EX_NOPARENTNOTIFY) SendDlgItemMessage(hwnd,IDC_EXSTYLE_NOPARENTNOTIFY,BM_SETCHECK,BST_CHECKED,0); |
493 | | if(ProjectInfo.pWindowInfo[i2].ExStyle&WS_EX_CONTEXTHELP) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CONTEXTHELP,BM_SETCHECK,BST_CHECKED,0); |
494 | | if(ProjectInfo.pWindowInfo[i2].ExStyle&WS_EX_CONTROLPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CONTROLPARENT,BM_SETCHECK,BST_CHECKED,0); |
495 | | break; |
| 487 | { |
| 488 | SetPosCenter(hwnd); |
| 489 | i=GetWndNum(GetWindow(hClient,GW_CHILD)); |
| 490 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 491 | if(pWindowInfo->ExStyle&WS_EX_TOPMOST) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOPMOST,BM_SETCHECK,BST_CHECKED,0); |
| 492 | if(pWindowInfo->ExStyle&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0); |
| 493 | if(pWindowInfo->ExStyle&WS_EX_TRANSPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_SETCHECK,BST_CHECKED,0); |
| 494 | if(pWindowInfo->ExStyle&WS_EX_TOOLWINDOW) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOOLWINDOW,BM_SETCHECK,BST_CHECKED,0); |
| 495 | if(pWindowInfo->ExStyle&WS_EX_CLIENTEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_SETCHECK,BST_CHECKED,0); |
| 496 | if(pWindowInfo->ExStyle&WS_EX_STATICEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_SETCHECK,BST_CHECKED,0); |
| 497 | if(pWindowInfo->ExStyle&WS_EX_NOPARENTNOTIFY) SendDlgItemMessage(hwnd,IDC_EXSTYLE_NOPARENTNOTIFY,BM_SETCHECK,BST_CHECKED,0); |
| 498 | if(pWindowInfo->ExStyle&WS_EX_CONTEXTHELP) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CONTEXTHELP,BM_SETCHECK,BST_CHECKED,0); |
| 499 | if(pWindowInfo->ExStyle&WS_EX_CONTROLPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CONTROLPARENT,BM_SETCHECK,BST_CHECKED,0); |
| 500 | break; |
| 501 | } |
499 | | i=GetWndNum(GetWindow(hClient,GW_CHILD)); |
500 | | i2=GetWndInfoNum(MdiInfo[i].path); |
501 | | |
502 | | DWORD style; |
503 | | style=0; |
504 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOPMOST,BM_GETCHECK,0,0)) |
505 | | style|=WS_EX_TOPMOST; |
506 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_GETCHECK,0,0)) |
507 | | style|=WS_EX_ACCEPTFILES; |
508 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_GETCHECK,0,0)) |
509 | | style|=WS_EX_TRANSPARENT; |
510 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOOLWINDOW,BM_GETCHECK,0,0)) |
511 | | style|=WS_EX_TOOLWINDOW; |
512 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_GETCHECK,0,0)) |
513 | | style|=WS_EX_CLIENTEDGE; |
514 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_GETCHECK,0,0)) |
515 | | style|=WS_EX_STATICEDGE; |
516 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_NOPARENTNOTIFY,BM_GETCHECK,0,0)) |
517 | | style|=WS_EX_NOPARENTNOTIFY; |
518 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_CONTEXTHELP,BM_GETCHECK,0,0)) |
519 | | style|=WS_EX_CONTEXTHELP; |
520 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_CONTROLPARENT,BM_GETCHECK,0,0)) |
521 | | style|=WS_EX_CONTROLPARENT; |
522 | | |
523 | | if(style==ProjectInfo.pWindowInfo[i2].ExStyle){ |
524 | | SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); |
| 505 | { |
| 506 | i=GetWndNum(GetWindow(hClient,GW_CHILD)); |
| 507 | |
| 508 | DWORD style; |
| 509 | style=0; |
| 510 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOPMOST,BM_GETCHECK,0,0)) |
| 511 | style|=WS_EX_TOPMOST; |
| 512 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_GETCHECK,0,0)) |
| 513 | style|=WS_EX_ACCEPTFILES; |
| 514 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_GETCHECK,0,0)) |
| 515 | style|=WS_EX_TRANSPARENT; |
| 516 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOOLWINDOW,BM_GETCHECK,0,0)) |
| 517 | style|=WS_EX_TOOLWINDOW; |
| 518 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_GETCHECK,0,0)) |
| 519 | style|=WS_EX_CLIENTEDGE; |
| 520 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_GETCHECK,0,0)) |
| 521 | style|=WS_EX_STATICEDGE; |
| 522 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_NOPARENTNOTIFY,BM_GETCHECK,0,0)) |
| 523 | style|=WS_EX_NOPARENTNOTIFY; |
| 524 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_CONTEXTHELP,BM_GETCHECK,0,0)) |
| 525 | style|=WS_EX_CONTEXTHELP; |
| 526 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_CONTROLPARENT,BM_GETCHECK,0,0)) |
| 527 | style|=WS_EX_CONTROLPARENT; |
| 528 | |
| 529 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 530 | |
| 531 | if(style==pWindowInfo->ExStyle){ |
| 532 | SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); |
| 533 | return 1; |
| 534 | } |
| 535 | |
| 536 | //変更情報 |
| 537 | Rad_NoticeChanging(i,RAD_UNDO_EXSTYLE,SELECT_WINDOW,pWindowInfo->ExStyle); |
| 538 | |
| 539 | pWindowInfo->ExStyle=style; |
| 540 | EndDialog(hwnd,1); |
551 | | bInitial=1; |
552 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
553 | | i2=GetWndInfoNum(MdiInfo[i].path); |
554 | | |
555 | | SetDlgItemText(hwnd,IDC_WINDOWNAME,ProjectInfo.pWindowInfo[i2].name); |
556 | | SetDlgItemText(hwnd,IDC_HANDLE,ProjectInfo.pWindowInfo[i2].HandleName); |
557 | | SetDlgItemText(hwnd,IDC_CAPTION,ProjectInfo.pWindowInfo[i2].caption); |
558 | | |
559 | | //"3D FACE(標準)" |
560 | | SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_BGCOLOR1); |
561 | | //"色指定" |
562 | | SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_BGCOLOR2); |
563 | | |
564 | | for(i3=0;i3<ProjectInfo.res.NumberOfBitmapRes;i3++) |
565 | | SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long)ProjectInfo.res.pBitmapResInfo[i3].IdName); |
566 | | if(ProjectInfo.pWindowInfo[i2].type==WNDTYPE_MODALDLG|| |
567 | | ProjectInfo.pWindowInfo[i2].type==WNDTYPE_MODELESSDLG){ |
568 | | SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_SETCURSEL,0,0); |
569 | | EnableWindow(GetDlgItem(hwnd,IDC_BGCOLOR),0); |
570 | | } |
571 | | else{ |
572 | | if(ProjectInfo.pWindowInfo[i2].bgColor==COLOR_3DFACE){ |
573 | | //3DFACE |
| 560 | { |
| 561 | bInitial=1; |
| 562 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 563 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 564 | |
| 565 | SetDlgItemText(hwnd,IDC_WINDOWNAME,pWindowInfo->name); |
| 566 | SetDlgItemText(hwnd,IDC_HANDLE,pWindowInfo->HandleName); |
| 567 | SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->caption); |
| 568 | |
| 569 | //"3D FACE(標準)" |
| 570 | SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_BGCOLOR1); |
| 571 | //"色指定" |
| 572 | SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_BGCOLOR2); |
| 573 | |
| 574 | for(i3=0;i3<ProjectInfo.res.NumberOfBitmapRes;i3++) |
| 575 | SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long)ProjectInfo.res.pBitmapResInfo[i3].IdName); |
| 576 | if(pWindowInfo->type==WNDTYPE_MODALDLG|| |
| 577 | pWindowInfo->type==WNDTYPE_MODELESSDLG){ |
599 | | SendDlgItemMessage(hwnd,IDC_WINDOWMENU,CB_ADDSTRING,0,(long)ProjectInfo.pMenuInfo[i3].IdName); |
600 | | } |
601 | | if(i4==0&&ProjectInfo.pWindowInfo[i2].MenuID){ |
602 | | //メニューが存在しない場合、無効にする |
603 | | HeapDefaultFree(ProjectInfo.pWindowInfo[i2].MenuID); |
604 | | ProjectInfo.pWindowInfo[i2].MenuID=0; |
605 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
606 | | } |
607 | | SendDlgItemMessage(hwnd,IDC_WINDOWMENU,CB_SETCURSEL,i4,0); |
608 | | |
609 | | |
610 | | //////////// |
611 | | // アイコン |
612 | | //////////// |
613 | | |
614 | | //"Windowsロゴ(標準)" |
615 | | SendDlgItemMessage(hwnd,IDC_ICONRES,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_ICONDEFAULT); |
616 | | |
617 | | for(i3=0,i4=0;i3<ProjectInfo.res.NumberOfIconRes;i3++){ |
618 | | SendDlgItemMessage(hwnd,IDC_ICONRES,CB_ADDSTRING,0,(long)ProjectInfo.res.pIconResInfo[i3].IdName); |
619 | | |
620 | | if(lstrcmp(ProjectInfo.pWindowInfo[i2].IconResName,ProjectInfo.res.pIconResInfo[i3].IdName)==0) |
621 | | i4=i3+1; |
622 | | } |
623 | | if(i4==0&&ProjectInfo.pWindowInfo[i2].IconResName){ |
624 | | //アイコンが存在しない場合、無効にする |
625 | | HeapDefaultFree(ProjectInfo.pWindowInfo[i2].IconResName); |
626 | | ProjectInfo.pWindowInfo[i2].IconResName=0; |
627 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
628 | | } |
629 | | SendDlgItemMessage(hwnd,IDC_ICONRES,CB_SETCURSEL,i4,0); |
630 | | |
631 | | |
632 | | //////////// |
633 | | // スタイル |
634 | | //////////// |
635 | | |
636 | | //"オーバーラップ" |
637 | | SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_OVERLAPPED); |
638 | | //"ポップアップ" |
639 | | SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_POPUP); |
640 | | //"チャイルド" |
641 | | SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_CHILD); |
642 | | |
643 | | if(ProjectInfo.pWindowInfo[i2].style&WS_POPUP) SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_SETCURSEL,1,0); |
644 | | else if(ProjectInfo.pWindowInfo[i2].style&WS_CHILD) SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_SETCURSEL,2,0); |
645 | | else SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_SETCURSEL,0,0); |
646 | | |
647 | | //"枠なし" |
648 | | SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_FRAME_NONE); |
649 | | //"細枠" |
650 | | SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_FRAME_THICK); |
651 | | //"サイズ変更枠" |
652 | | SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_FRAME_BORDER); |
653 | | |
654 | | //WS_CAPTION(WS_BORDER含む)を考慮してWS_THICKFRAMEを最初に比較する |
655 | | if(ProjectInfo.pWindowInfo[i2].style&WS_THICKFRAME) SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_SETCURSEL,2,0); |
656 | | else if(ProjectInfo.pWindowInfo[i2].style&WS_BORDER) SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_SETCURSEL,1,0); |
657 | | else SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_SETCURSEL,0,0); |
658 | | |
659 | | if(ProjectInfo.pWindowInfo[i2].style&WS_CAPTION) SendDlgItemMessage(hwnd,IDC_STYLE_CAPTION,BM_SETCHECK,BST_CHECKED,0); |
660 | | if(ProjectInfo.pWindowInfo[i2].style&WS_SYSMENU) SendDlgItemMessage(hwnd,IDC_STYLE_SYSMENU,BM_SETCHECK,BST_CHECKED,0); |
661 | | if(ProjectInfo.pWindowInfo[i2].style&WS_MINIMIZEBOX) SendDlgItemMessage(hwnd,IDC_STYLE_MINIMIZEBOX,BM_SETCHECK,BST_CHECKED,0); |
662 | | if(ProjectInfo.pWindowInfo[i2].style&WS_MAXIMIZEBOX) SendDlgItemMessage(hwnd,IDC_STYLE_MAXIMIZEBOX,BM_SETCHECK,BST_CHECKED,0); |
663 | | if(ProjectInfo.pWindowInfo[i2].style&WS_MINIMIZE) SendDlgItemMessage(hwnd,IDC_STYLE_MINIMIZE,BM_SETCHECK,BST_CHECKED,0); |
664 | | if(ProjectInfo.pWindowInfo[i2].style&WS_MAXIMIZE) SendDlgItemMessage(hwnd,IDC_STYLE_MAXIMIZE,BM_SETCHECK,BST_CHECKED,0); |
665 | | if(ProjectInfo.pWindowInfo[i2].style&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLLBAR,BM_SETCHECK,BST_CHECKED,0); |
666 | | if(ProjectInfo.pWindowInfo[i2].style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLLBAR,BM_SETCHECK,BST_CHECKED,0); |
667 | | if(ProjectInfo.pWindowInfo[i2].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
668 | | if(ProjectInfo.pWindowInfo[i2].style&WS_CLIPSIBLINGS) SendDlgItemMessage(hwnd,IDC_STYLE_CLIPSIBLINGS,BM_SETCHECK,BST_CHECKED,0); |
669 | | if(ProjectInfo.pWindowInfo[i2].style&WS_CLIPCHILDREN) SendDlgItemMessage(hwnd,IDC_STYLE_CLIPCHILDREN,BM_SETCHECK,BST_CHECKED,0); |
670 | | if(ProjectInfo.pWindowInfo[i2].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
671 | | |
672 | | SetDlgItemText(hwnd,IDC_SETFONT,ProjectInfo.pWindowInfo[i2].LogFont.lfFaceName); |
673 | | |
674 | | RadProperty_Window_Window_StylingOrder(hwnd,&ProjectInfo.pWindowInfo[i2].style); |
675 | | |
676 | | |
677 | | ////////// |
678 | | //タイプ |
679 | | switch(ProjectInfo.pWindowInfo[i2].type){ |
680 | | case WNDTYPE_DEFAULT: |
681 | | SendDlgItemMessage(hwnd,IDC_DEFWINDOW,BM_SETCHECK,BST_CHECKED,0); |
682 | | break; |
683 | | case WNDTYPE_MODALDLG: |
684 | | SendDlgItemMessage(hwnd,IDC_MODALDLG,BM_SETCHECK,BST_CHECKED,0); |
685 | | break; |
686 | | case WNDTYPE_MODELESSDLG: |
687 | | SendDlgItemMessage(hwnd,IDC_MODELESSDLG,BM_SETCHECK,BST_CHECKED,0); |
688 | | break; |
689 | | } |
690 | | |
691 | | |
692 | | bInitial=0; |
693 | | break; |
| 633 | if(i4==0&&pWindowInfo->IconResName){ |
| 634 | //アイコンが存在しない場合、無効にする |
| 635 | HeapDefaultFree(pWindowInfo->IconResName); |
| 636 | pWindowInfo->IconResName=0; |
| 637 | DrawRadWindow(i,pWindowInfo); |
| 638 | } |
| 639 | SendDlgItemMessage(hwnd,IDC_ICONRES,CB_SETCURSEL,i4,0); |
| 640 | |
| 641 | |
| 642 | //////////// |
| 643 | // スタイル |
| 644 | //////////// |
| 645 | |
| 646 | //"オーバーラップ" |
| 647 | SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_OVERLAPPED); |
| 648 | //"ポップアップ" |
| 649 | SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_POPUP); |
| 650 | //"チャイルド" |
| 651 | SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_CHILD); |
| 652 | |
| 653 | if(pWindowInfo->style&WS_POPUP) SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_SETCURSEL,1,0); |
| 654 | else if(pWindowInfo->style&WS_CHILD) SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_SETCURSEL,2,0); |
| 655 | else SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_SETCURSEL,0,0); |
| 656 | |
| 657 | //"枠なし" |
| 658 | SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_FRAME_NONE); |
| 659 | //"細枠" |
| 660 | SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_FRAME_THICK); |
| 661 | //"サイズ変更枠" |
| 662 | SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_FRAME_BORDER); |
| 663 | |
| 664 | //WS_CAPTION(WS_BORDER含む)を考慮してWS_THICKFRAMEを最初に比較する |
| 665 | if(pWindowInfo->style&WS_THICKFRAME) SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_SETCURSEL,2,0); |
| 666 | else if(pWindowInfo->style&WS_BORDER) SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_SETCURSEL,1,0); |
| 667 | else SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_SETCURSEL,0,0); |
| 668 | |
| 669 | if(pWindowInfo->style&WS_CAPTION) SendDlgItemMessage(hwnd,IDC_STYLE_CAPTION,BM_SETCHECK,BST_CHECKED,0); |
| 670 | if(pWindowInfo->style&WS_SYSMENU) SendDlgItemMessage(hwnd,IDC_STYLE_SYSMENU,BM_SETCHECK,BST_CHECKED,0); |
| 671 | if(pWindowInfo->style&WS_MINIMIZEBOX) SendDlgItemMessage(hwnd,IDC_STYLE_MINIMIZEBOX,BM_SETCHECK,BST_CHECKED,0); |
| 672 | if(pWindowInfo->style&WS_MAXIMIZEBOX) SendDlgItemMessage(hwnd,IDC_STYLE_MAXIMIZEBOX,BM_SETCHECK,BST_CHECKED,0); |
| 673 | if(pWindowInfo->style&WS_MINIMIZE) SendDlgItemMessage(hwnd,IDC_STYLE_MINIMIZE,BM_SETCHECK,BST_CHECKED,0); |
| 674 | if(pWindowInfo->style&WS_MAXIMIZE) SendDlgItemMessage(hwnd,IDC_STYLE_MAXIMIZE,BM_SETCHECK,BST_CHECKED,0); |
| 675 | if(pWindowInfo->style&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLLBAR,BM_SETCHECK,BST_CHECKED,0); |
| 676 | if(pWindowInfo->style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLLBAR,BM_SETCHECK,BST_CHECKED,0); |
| 677 | if(pWindowInfo->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
| 678 | if(pWindowInfo->style&WS_CLIPSIBLINGS) SendDlgItemMessage(hwnd,IDC_STYLE_CLIPSIBLINGS,BM_SETCHECK,BST_CHECKED,0); |
| 679 | if(pWindowInfo->style&WS_CLIPCHILDREN) SendDlgItemMessage(hwnd,IDC_STYLE_CLIPCHILDREN,BM_SETCHECK,BST_CHECKED,0); |
| 680 | if(pWindowInfo->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
| 681 | |
| 682 | SetDlgItemText(hwnd,IDC_SETFONT,pWindowInfo->LogFont.lfFaceName); |
| 683 | |
| 684 | RadProperty_Window_Window_StylingOrder(hwnd,&pWindowInfo->style); |
| 685 | |
| 686 | |
| 687 | ////////// |
| 688 | //タイプ |
| 689 | switch(pWindowInfo->type){ |
| 690 | case WNDTYPE_DEFAULT: |
| 691 | SendDlgItemMessage(hwnd,IDC_DEFWINDOW,BM_SETCHECK,BST_CHECKED,0); |
| 692 | break; |
| 693 | case WNDTYPE_MODALDLG: |
| 694 | SendDlgItemMessage(hwnd,IDC_MODALDLG,BM_SETCHECK,BST_CHECKED,0); |
| 695 | break; |
| 696 | case WNDTYPE_MODELESSDLG: |
| 697 | SendDlgItemMessage(hwnd,IDC_MODELESSDLG,BM_SETCHECK,BST_CHECKED,0); |
| 698 | break; |
| 699 | } |
| 700 | |
| 701 | |
| 702 | bInitial=0; |
| 703 | break; |
| 704 | } |
1122 | | i=GetWndNum(GetWindow(hClient,GW_CHILD)); |
1123 | | i2=GetWndInfoNum(MdiInfo[i].path); |
1124 | | |
1125 | | i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_CAPTION))+1; |
1126 | | temporary=(char *)HeapAlloc(hHeap,0,i3); |
1127 | | GetDlgItemText(hwnd,IDC_CAPTION,temporary,i3); |
1128 | | if(MdiInfo[i].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ |
1129 | | if(lstrcmp(temporary,ProjectInfo.pWindowInfo[i2].caption)==0){ |
1130 | | HeapDefaultFree(temporary); |
1131 | | SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); |
1132 | | return 1; |
1133 | | } |
1134 | | |
1135 | | //変更情報を更新 |
1136 | | Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)ProjectInfo.pWindowInfo[i2].caption); |
1137 | | |
1138 | | HeapDefaultFree(ProjectInfo.pWindowInfo[i2].caption); |
1139 | | ProjectInfo.pWindowInfo[i2].caption=temporary; |
| 1140 | { |
| 1141 | i=GetWndNum(GetWindow(hClient,GW_CHILD)); |
| 1142 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 1143 | |
| 1144 | i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_CAPTION))+1; |
| 1145 | temporary=(char *)HeapAlloc(hHeap,0,i3); |
| 1146 | GetDlgItemText(hwnd,IDC_CAPTION,temporary,i3); |
| 1147 | if(MdiInfo[i].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ |
| 1148 | if(lstrcmp(temporary,pWindowInfo->caption)==0){ |
| 1149 | HeapDefaultFree(temporary); |
| 1150 | SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); |
| 1151 | return 1; |
| 1152 | } |
| 1153 | |
| 1154 | //変更情報を更新 |
| 1155 | Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)pWindowInfo->caption); |
| 1156 | |
| 1157 | HeapDefaultFree(pWindowInfo->caption); |
| 1158 | pWindowInfo->caption=temporary; |
| 1159 | } |
| 1160 | else{ |
| 1161 | if(lstrcmp(temporary,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption)==0){ |
| 1162 | HeapDefaultFree(temporary); |
| 1163 | SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); |
| 1164 | return 1; |
| 1165 | } |
| 1166 | |
| 1167 | //変更情報を更新 |
| 1168 | Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption); |
| 1169 | |
| 1170 | HeapDefaultFree(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption); |
| 1171 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption=temporary; |
| 1172 | |
| 1173 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_STATIC){ |
| 1174 | //スタティック テキスト |
| 1175 | //テキストが表示できるようにサイズを拡大する |
| 1176 | |
| 1177 | PointAndSize.pos=pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].pos; |
| 1178 | PointAndSize.size=pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size; |
| 1179 | Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); |
| 1180 | |
| 1181 | HFONT hFont,hOldFont; |
| 1182 | hFont=CreateFontIndirect(&pWindowInfo->LogFont); |
| 1183 | hOldFont=(HFONT)SelectObject(MdiInfo[i].MdiRadInfo->hMemDC,hFont); |
| 1184 | GetTextExtentPoint32(MdiInfo[i].MdiRadInfo->hMemDC,temporary,lstrlen(temporary),&PointAndSize.size); |
| 1185 | SelectObject(MdiInfo[i].MdiRadInfo->hMemDC,hOldFont); |
| 1186 | DeleteObject(hFont); |
| 1187 | |
| 1188 | //テキストの終端に余裕を持たせる |
| 1189 | PointAndSize.size.cx+=5; |
| 1190 | |
| 1191 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx<PointAndSize.size.cx) |
| 1192 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx=PointAndSize.size.cx; |
| 1193 | } |
| 1194 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_CHECKBOX){ |
| 1195 | //チェック ボックス |
| 1196 | //テキストが表示できるようにサイズを拡大する |
| 1197 | |
| 1198 | PointAndSize.pos=pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].pos; |
| 1199 | PointAndSize.size=pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size; |
| 1200 | Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); |
| 1201 | |
| 1202 | HFONT hFont,hOldFont; |
| 1203 | hFont=CreateFontIndirect(&pWindowInfo->LogFont); |
| 1204 | hOldFont=(HFONT)SelectObject(MdiInfo[i].MdiRadInfo->hMemDC,hFont); |
| 1205 | GetTextExtentPoint32(MdiInfo[i].MdiRadInfo->hMemDC,temporary,lstrlen(temporary),&PointAndSize.size); |
| 1206 | SelectObject(MdiInfo[i].MdiRadInfo->hMemDC,hOldFont); |
| 1207 | DeleteObject(hFont); |
| 1208 | |
| 1209 | //テキストの終端に余裕を持たせる |
| 1210 | PointAndSize.size.cx+=21; |
| 1211 | |
| 1212 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx<PointAndSize.size.cx) |
| 1213 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx=PointAndSize.size.cx; |
| 1214 | } |
| 1215 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_RADIOBUTTON){ |
| 1216 | //ラジオ ボックス |
| 1217 | //テキストが表示できるようにサイズを拡大する |
| 1218 | |
| 1219 | PointAndSize.pos=pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].pos; |
| 1220 | PointAndSize.size=pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size; |
| 1221 | Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); |
| 1222 | |
| 1223 | HFONT hFont,hOldFont; |
| 1224 | hFont=CreateFontIndirect(&pWindowInfo->LogFont); |
| 1225 | hOldFont=(HFONT)SelectObject(MdiInfo[i].MdiRadInfo->hMemDC,hFont); |
| 1226 | GetTextExtentPoint32(MdiInfo[i].MdiRadInfo->hMemDC,temporary,lstrlen(temporary),&PointAndSize.size); |
| 1227 | SelectObject(MdiInfo[i].MdiRadInfo->hMemDC,hOldFont); |
| 1228 | DeleteObject(hFont); |
| 1229 | |
| 1230 | //テキストの終端に余裕を持たせる |
| 1231 | PointAndSize.size.cx+=20; |
| 1232 | |
| 1233 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx<PointAndSize.size.cx) |
| 1234 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx=PointAndSize.size.cx; |
| 1235 | } |
| 1236 | } |
| 1237 | DrawRadWindow(i,pWindowInfo); |
| 1238 | EndDialog(hwnd,1); |
| 1239 | return 1; |
1141 | | else{ |
1142 | | if(lstrcmp(temporary,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption)==0){ |
1143 | | HeapDefaultFree(temporary); |
1144 | | SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); |
1145 | | return 1; |
1146 | | } |
1147 | | |
1148 | | //変更情報を更新 |
1149 | | Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption); |
1150 | | |
1151 | | HeapDefaultFree(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption); |
1152 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption=temporary; |
1153 | | |
1154 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_STATIC){ |
1155 | | //スタティック テキスト |
1156 | | //テキストが表示できるようにサイズを拡大する |
1157 | | |
1158 | | PointAndSize.pos=ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].pos; |
1159 | | PointAndSize.size=ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size; |
1160 | | Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); |
1161 | | |
1162 | | HFONT hFont,hOldFont; |
1163 | | hFont=CreateFontIndirect(&ProjectInfo.pWindowInfo[i2].LogFont); |
1164 | | hOldFont=(HFONT)SelectObject(MdiInfo[i].MdiRadInfo->hMemDC,hFont); |
1165 | | GetTextExtentPoint32(MdiInfo[i].MdiRadInfo->hMemDC,temporary,lstrlen(temporary),&PointAndSize.size); |
1166 | | SelectObject(MdiInfo[i].MdiRadInfo->hMemDC,hOldFont); |
1167 | | DeleteObject(hFont); |
1168 | | |
1169 | | //テキストの終端に余裕を持たせる |
1170 | | PointAndSize.size.cx+=5; |
1171 | | |
1172 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx<PointAndSize.size.cx) |
1173 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx=PointAndSize.size.cx; |
1174 | | } |
1175 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_CHECKBOX){ |
1176 | | //チェック ボックス |
1177 | | //テキストが表示できるようにサイズを拡大する |
1178 | | |
1179 | | PointAndSize.pos=ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].pos; |
1180 | | PointAndSize.size=ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size; |
1181 | | Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); |
1182 | | |
1183 | | HFONT hFont,hOldFont; |
1184 | | hFont=CreateFontIndirect(&ProjectInfo.pWindowInfo[i2].LogFont); |
1185 | | hOldFont=(HFONT)SelectObject(MdiInfo[i].MdiRadInfo->hMemDC,hFont); |
1186 | | GetTextExtentPoint32(MdiInfo[i].MdiRadInfo->hMemDC,temporary,lstrlen(temporary),&PointAndSize.size); |
1187 | | SelectObject(MdiInfo[i].MdiRadInfo->hMemDC,hOldFont); |
1188 | | DeleteObject(hFont); |
1189 | | |
1190 | | //テキストの終端に余裕を持たせる |
1191 | | PointAndSize.size.cx+=21; |
1192 | | |
1193 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx<PointAndSize.size.cx) |
1194 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx=PointAndSize.size.cx; |
1195 | | } |
1196 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_RADIOBUTTON){ |
1197 | | //ラジオ ボックス |
1198 | | //テキストが表示できるようにサイズを拡大する |
1199 | | |
1200 | | PointAndSize.pos=ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].pos; |
1201 | | PointAndSize.size=ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size; |
1202 | | Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); |
1203 | | |
1204 | | HFONT hFont,hOldFont; |
1205 | | hFont=CreateFontIndirect(&ProjectInfo.pWindowInfo[i2].LogFont); |
1206 | | hOldFont=(HFONT)SelectObject(MdiInfo[i].MdiRadInfo->hMemDC,hFont); |
1207 | | GetTextExtentPoint32(MdiInfo[i].MdiRadInfo->hMemDC,temporary,lstrlen(temporary),&PointAndSize.size); |
1208 | | SelectObject(MdiInfo[i].MdiRadInfo->hMemDC,hOldFont); |
1209 | | DeleteObject(hFont); |
1210 | | |
1211 | | //テキストの終端に余裕を持たせる |
1212 | | PointAndSize.size.cx+=20; |
1213 | | |
1214 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx<PointAndSize.size.cx) |
1215 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx=PointAndSize.size.cx; |
1216 | | } |
1217 | | } |
1218 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1219 | | EndDialog(hwnd,1); |
1220 | | return 1; |
1368 | | i=GetWndNum(GetWindow(hClient,GW_CHILD)); |
1369 | | i2=GetWndInfoNum(MdiInfo[i].path); |
1370 | | |
1371 | | DWORD style; |
1372 | | style=0; |
1373 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_GETCHECK,0,0)) |
1374 | | style|=WS_EX_ACCEPTFILES; |
1375 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_GETCHECK,0,0)) |
1376 | | style|=WS_EX_TRANSPARENT; |
1377 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_DLGMODALFRAME,BM_GETCHECK,0,0)) |
1378 | | style|=WS_EX_DLGMODALFRAME; |
1379 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_GETCHECK,0,0)) |
1380 | | style|=WS_EX_CLIENTEDGE; |
1381 | | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_GETCHECK,0,0)) |
1382 | | style|=WS_EX_STATICEDGE; |
1383 | | |
1384 | | if(style==ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle){ |
1385 | | SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); |
| 1396 | { |
| 1397 | i=GetWndNum(GetWindow(hClient,GW_CHILD)); |
| 1398 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 1399 | |
| 1400 | DWORD style; |
| 1401 | style=0; |
| 1402 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_GETCHECK,0,0)) |
| 1403 | style|=WS_EX_ACCEPTFILES; |
| 1404 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_GETCHECK,0,0)) |
| 1405 | style|=WS_EX_TRANSPARENT; |
| 1406 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_DLGMODALFRAME,BM_GETCHECK,0,0)) |
| 1407 | style|=WS_EX_DLGMODALFRAME; |
| 1408 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_GETCHECK,0,0)) |
| 1409 | style|=WS_EX_CLIENTEDGE; |
| 1410 | if(SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_GETCHECK,0,0)) |
| 1411 | style|=WS_EX_STATICEDGE; |
| 1412 | |
| 1413 | if(style==pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle){ |
| 1414 | SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); |
| 1415 | return 1; |
| 1416 | } |
| 1417 | |
| 1418 | //変更情報 |
| 1419 | Rad_NoticeChanging(i,RAD_UNDO_EXSTYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle); |
| 1420 | |
| 1421 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle=style; |
| 1422 | EndDialog(hwnd,1); |
1416 | | bInitial=1; |
1417 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
1418 | | i2=GetWndInfoNum(MdiInfo[i].path); |
1419 | | |
1420 | | SetDlgItemText(hwnd,IDC_IDNAME,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
1421 | | SetDlgItemText(hwnd,IDC_CAPTION,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption); |
1422 | | |
1423 | | |
1424 | | //////////// |
1425 | | //スタイル |
1426 | | |
1427 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
1428 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
1429 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
1430 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
1431 | | |
1432 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_OWNERDRAW)==BS_OWNERDRAW) SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_CHECKED,0); |
1433 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_DEFPUSHBUTTON) SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_CHECKED,0); |
1434 | | |
1435 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); |
1436 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); |
1437 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0); |
1438 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); |
1439 | | |
1440 | | |
1441 | | ////////////////// |
1442 | | // 水平方向の配置 |
1443 | | ////////////////// |
1444 | | |
1445 | | //"デフォルト" |
1446 | | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_DEFAULT); |
1447 | | //"左端" |
1448 | | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_LEFT); |
1449 | | //"右端" |
1450 | | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_RIGHT); |
1451 | | //"中央" |
1452 | | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_CENTER); |
1453 | | |
1454 | | //ビットを考慮してBS_CENTERを最初に比較する |
1455 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0); |
1456 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0); |
1457 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0); |
1458 | | else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0); |
1459 | | |
1460 | | |
1461 | | ////////////////// |
1462 | | // 垂直方向の配置 |
1463 | | ////////////////// |
1464 | | |
1465 | | //"デフォルト" |
1466 | | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_DEFAULT); |
1467 | | //"上端" |
1468 | | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_TOP); |
1469 | | //"下端" |
1470 | | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_BOTTOM); |
1471 | | //"中央" |
1472 | | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_CENTER); |
1473 | | |
1474 | | //ビットを考慮してBS_VCENTERを最初に比較する |
1475 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0); |
1476 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0); |
1477 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0); |
1478 | | else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0); |
1479 | | |
1480 | | |
1481 | | bInitial=0; |
1482 | | break; |
| 1446 | { |
| 1447 | bInitial=1; |
| 1448 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 1449 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 1450 | |
| 1451 | SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
| 1452 | SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption); |
| 1453 | |
| 1454 | |
| 1455 | //////////// |
| 1456 | //スタイル |
| 1457 | |
| 1458 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
| 1459 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
| 1460 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
| 1461 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
| 1462 | |
| 1463 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_OWNERDRAW)==BS_OWNERDRAW) SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_CHECKED,0); |
| 1464 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_DEFPUSHBUTTON) SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_CHECKED,0); |
| 1465 | |
| 1466 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); |
| 1467 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); |
| 1468 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0); |
| 1469 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); |
| 1470 | |
| 1471 | |
| 1472 | ////////////////// |
| 1473 | // 水平方向の配置 |
| 1474 | ////////////////// |
| 1475 | |
| 1476 | //"デフォルト" |
| 1477 | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_DEFAULT); |
| 1478 | //"左端" |
| 1479 | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_LEFT); |
| 1480 | //"右端" |
| 1481 | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_RIGHT); |
| 1482 | //"中央" |
| 1483 | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_CENTER); |
| 1484 | |
| 1485 | //ビットを考慮してBS_CENTERを最初に比較する |
| 1486 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0); |
| 1487 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0); |
| 1488 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0); |
| 1489 | else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0); |
| 1490 | |
| 1491 | |
| 1492 | ////////////////// |
| 1493 | // 垂直方向の配置 |
| 1494 | ////////////////// |
| 1495 | |
| 1496 | //"デフォルト" |
| 1497 | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_DEFAULT); |
| 1498 | //"上端" |
| 1499 | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_TOP); |
| 1500 | //"下端" |
| 1501 | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_BOTTOM); |
| 1502 | //"中央" |
| 1503 | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_CENTER); |
| 1504 | |
| 1505 | //ビットを考慮してBS_VCENTERを最初に比較する |
| 1506 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0); |
| 1507 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0); |
| 1508 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0); |
| 1509 | else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0); |
| 1510 | |
| 1511 | |
| 1512 | bInitial=0; |
| 1513 | break; |
| 1514 | } |
1484 | | |
1485 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
1486 | | if(i==-1) return 1; |
1487 | | i2=GetWndInfoNum(MdiInfo[i].path); |
1488 | | |
1489 | | //共通スタイル |
1490 | | if(bInitial==0){ |
1491 | | if(DefaultItemStyles(hwnd,i,i2,wParam)) return 1; |
1492 | | } |
1493 | | |
1494 | | switch(LOWORD(wParam)){ |
1495 | | case IDC_BS_DEFPUSHBUTTON: |
1496 | | if(HIWORD(wParam)==BN_CLICKED){ |
1497 | | //変更情報 |
1498 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1499 | | |
1500 | | if(SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_GETCHECK,0,0)){ |
1501 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_OWNERDRAW; |
1502 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_DEFPUSHBUTTON; |
1503 | | SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_UNCHECKED,0); |
1504 | | } |
1505 | | else |
1506 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_DEFPUSHBUTTON; |
1507 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
| 1516 | { |
| 1517 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 1518 | if(i==-1) return 1; |
| 1519 | i2=GetWndInfoNum(MdiInfo[i].path); |
| 1520 | WINDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[i2]; |
| 1521 | |
| 1522 | //共通スタイル |
| 1523 | if(bInitial==0){ |
| 1524 | if(DefaultItemStyles(hwnd,i,i2,wParam)) return 1; |
| 1525 | } |
| 1526 | |
| 1527 | switch(LOWORD(wParam)){ |
| 1528 | case IDC_BS_DEFPUSHBUTTON: |
| 1529 | if(HIWORD(wParam)==BN_CLICKED){ |
| 1530 | //変更情報 |
| 1531 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1532 | |
| 1533 | if(SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_GETCHECK,0,0)){ |
| 1534 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_OWNERDRAW; |
| 1535 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_DEFPUSHBUTTON; |
| 1536 | SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_UNCHECKED,0); |
| 1537 | } |
| 1538 | else |
| 1539 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_DEFPUSHBUTTON; |
| 1540 | DrawRadWindow(i,pWindowInfo); |
| 1541 | return 1; |
| 1542 | } |
| 1543 | break; |
| 1544 | case IDC_BS_OWNERDRAW: |
| 1545 | if(HIWORD(wParam)==BN_CLICKED){ |
| 1546 | //変更情報 |
| 1547 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1548 | |
| 1549 | if(SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_GETCHECK,0,0)){ |
| 1550 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_DEFPUSHBUTTON; |
| 1551 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_OWNERDRAW; |
| 1552 | SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_UNCHECKED,0); |
| 1553 | } |
| 1554 | else |
| 1555 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_OWNERDRAW; |
| 1556 | DrawRadWindow(i,pWindowInfo); |
| 1557 | return 1; |
| 1558 | } |
| 1559 | break; |
| 1560 | case IDC_BS_ICON: |
| 1561 | if(HIWORD(wParam)==BN_CLICKED){ |
| 1562 | //変更情報 |
| 1563 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1564 | |
| 1565 | if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){ |
| 1566 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_ICON; |
| 1567 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP; |
| 1568 | SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0); |
| 1569 | } |
| 1570 | else |
| 1571 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON; |
| 1572 | DrawRadWindow(i,pWindowInfo); |
| 1573 | return 1; |
| 1574 | } |
| 1575 | break; |
| 1576 | case IDC_BS_BITMAP: |
| 1577 | if(HIWORD(wParam)==BN_CLICKED){ |
| 1578 | //変更情報 |
| 1579 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1580 | |
| 1581 | if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){ |
| 1582 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BITMAP; |
| 1583 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON; |
| 1584 | SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0); |
| 1585 | } |
| 1586 | else |
| 1587 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP; |
| 1588 | DrawRadWindow(i,pWindowInfo); |
| 1589 | return 1; |
| 1590 | } |
| 1591 | break; |
| 1592 | case IDC_BS_MULTILINE: |
| 1593 | if(HIWORD(wParam)==BN_CLICKED){ |
| 1594 | //変更情報 |
| 1595 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1596 | |
| 1597 | if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0)) |
| 1598 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_MULTILINE; |
| 1599 | else |
| 1600 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_MULTILINE; |
| 1601 | DrawRadWindow(i,pWindowInfo); |
| 1602 | return 1; |
| 1603 | } |
| 1604 | break; |
| 1605 | case IDC_BS_NOTIFY: |
| 1606 | if(HIWORD(wParam)==BN_CLICKED){ |
| 1607 | //変更情報 |
| 1608 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1609 | |
| 1610 | if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) |
| 1611 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_NOTIFY; |
| 1612 | else |
| 1613 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_NOTIFY; |
| 1614 | return 1; |
| 1615 | } |
| 1616 | break; |
| 1617 | |
| 1618 | case IDC_BS_HPOS: |
| 1619 | if(HIWORD(wParam)==CBN_SELCHANGE){ |
| 1620 | //変更情報 |
| 1621 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1622 | |
| 1623 | i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0); |
| 1624 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_LEFT|BS_RIGHT|BS_CENTER); |
| 1625 | if(i3==1) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFT; |
| 1626 | else if(i3==2) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_RIGHT; |
| 1627 | else if(i3==3) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CENTER; |
| 1628 | DrawRadWindow(i,pWindowInfo); |
| 1629 | return 1; |
| 1630 | } |
| 1631 | break; |
| 1632 | case IDC_BS_VPOS: |
| 1633 | if(HIWORD(wParam)==CBN_SELCHANGE){ |
| 1634 | //変更情報 |
| 1635 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1636 | |
| 1637 | i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0); |
| 1638 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER); |
| 1639 | if(i3==1) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_TOP; |
| 1640 | else if(i3==2) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BOTTOM; |
| 1641 | else if(i3==3) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_VCENTER; |
| 1642 | DrawRadWindow(i,pWindowInfo); |
| 1643 | return 1; |
| 1644 | } |
| 1645 | break; |
| 1646 | |
| 1647 | case IDC_EXSTYLE: |
| 1648 | if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,(DLGPROC)DlgRadProperty_Item_ExStyle)) return 1; |
| 1649 | DrawRadWindow(i,pWindowInfo); |
1509 | | } |
1510 | | break; |
1511 | | case IDC_BS_OWNERDRAW: |
1512 | | if(HIWORD(wParam)==BN_CLICKED){ |
1513 | | //変更情報 |
1514 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1515 | | |
1516 | | if(SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_GETCHECK,0,0)){ |
1517 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_DEFPUSHBUTTON; |
1518 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_OWNERDRAW; |
1519 | | SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_UNCHECKED,0); |
1520 | | } |
1521 | | else |
1522 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_OWNERDRAW; |
1523 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1524 | | return 1; |
1525 | | } |
1526 | | break; |
1527 | | case IDC_BS_ICON: |
1528 | | if(HIWORD(wParam)==BN_CLICKED){ |
1529 | | //変更情報 |
1530 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1531 | | |
1532 | | if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){ |
1533 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_ICON; |
1534 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP; |
1535 | | SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0); |
1536 | | } |
1537 | | else |
1538 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON; |
1539 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1540 | | return 1; |
1541 | | } |
1542 | | break; |
1543 | | case IDC_BS_BITMAP: |
1544 | | if(HIWORD(wParam)==BN_CLICKED){ |
1545 | | //変更情報 |
1546 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1547 | | |
1548 | | if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){ |
1549 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BITMAP; |
1550 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON; |
1551 | | SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0); |
1552 | | } |
1553 | | else |
1554 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP; |
1555 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1556 | | return 1; |
1557 | | } |
1558 | | break; |
1559 | | case IDC_BS_MULTILINE: |
1560 | | if(HIWORD(wParam)==BN_CLICKED){ |
1561 | | //変更情報 |
1562 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1563 | | |
1564 | | if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0)) |
1565 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_MULTILINE; |
1566 | | else |
1567 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_MULTILINE; |
1568 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1569 | | return 1; |
1570 | | } |
1571 | | break; |
1572 | | case IDC_BS_NOTIFY: |
1573 | | if(HIWORD(wParam)==BN_CLICKED){ |
1574 | | //変更情報 |
1575 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1576 | | |
1577 | | if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) |
1578 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_NOTIFY; |
1579 | | else |
1580 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_NOTIFY; |
1581 | | return 1; |
1582 | | } |
1583 | | break; |
1584 | | |
1585 | | case IDC_BS_HPOS: |
1586 | | if(HIWORD(wParam)==CBN_SELCHANGE){ |
1587 | | //変更情報 |
1588 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1589 | | |
1590 | | i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0); |
1591 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_LEFT|BS_RIGHT|BS_CENTER); |
1592 | | if(i3==1) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFT; |
1593 | | else if(i3==2) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_RIGHT; |
1594 | | else if(i3==3) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CENTER; |
1595 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1596 | | return 1; |
1597 | | } |
1598 | | break; |
1599 | | case IDC_BS_VPOS: |
1600 | | if(HIWORD(wParam)==CBN_SELCHANGE){ |
1601 | | //変更情報 |
1602 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1603 | | |
1604 | | i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0); |
1605 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER); |
1606 | | if(i3==1) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_TOP; |
1607 | | else if(i3==2) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BOTTOM; |
1608 | | else if(i3==3) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_VCENTER; |
1609 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1610 | | return 1; |
1611 | | } |
1612 | | break; |
1613 | | |
1614 | | case IDC_EXSTYLE: |
1615 | | if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,(DLGPROC)DlgRadProperty_Item_ExStyle)) return 1; |
1616 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1617 | | return 1; |
1618 | | } |
1619 | | break; |
| 1651 | } |
| 1652 | break; |
| 1653 | } |
1635 | | bInitial=1; |
1636 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
1637 | | i2=GetWndInfoNum(MdiInfo[i].path); |
1638 | | |
1639 | | SetDlgItemText(hwnd,IDC_IDNAME,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
1640 | | SetDlgItemText(hwnd,IDC_CAPTION,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption); |
1641 | | |
1642 | | |
1643 | | //////////// |
1644 | | //スタイル |
1645 | | |
1646 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
1647 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
1648 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
1649 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
1650 | | |
1651 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_AUTOCHECKBOX)==BS_AUTOCHECKBOX) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0); |
1652 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_AUTO3STATE)==BS_AUTO3STATE){ |
1653 | | SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0); |
1654 | | SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0); |
1655 | | } |
1656 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_3STATE)==BS_3STATE) SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0); |
1657 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0); |
1658 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0); |
1659 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); |
1660 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); |
1661 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0); |
1662 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); |
1663 | | |
1664 | | |
1665 | | ////////////////// |
1666 | | // 水平方向の配置 |
1667 | | ////////////////// |
1668 | | |
1669 | | //"デフォルト" |
1670 | | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_DEFAULT); |
1671 | | //"左端" |
1672 | | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_LEFT); |
1673 | | //"右端" |
1674 | | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_RIGHT); |
1675 | | //"中央" |
1676 | | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_CENTER); |
1677 | | |
1678 | | //ビットを考慮してBS_CENTERを最初に比較する |
1679 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0); |
1680 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0); |
1681 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0); |
1682 | | else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0); |
1683 | | |
1684 | | |
1685 | | ////////////////// |
1686 | | // 垂直方向の配置 |
1687 | | ////////////////// |
1688 | | |
1689 | | //"デフォルト" |
1690 | | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_DEFAULT); |
1691 | | //"上端" |
1692 | | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_TOP); |
1693 | | //"下端" |
1694 | | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_BOTTOM); |
1695 | | //"中央" |
1696 | | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_CENTER); |
1697 | | |
1698 | | //ビットを考慮してBS_VCENTERを最初に比較する |
1699 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0); |
1700 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0); |
1701 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0); |
1702 | | else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0); |
1703 | | |
1704 | | |
1705 | | bInitial=0; |
1706 | | break; |
| 1669 | { |
| 1670 | bInitial=1; |
| 1671 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 1672 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 1673 | |
| 1674 | SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
| 1675 | SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption); |
| 1676 | |
| 1677 | |
| 1678 | //////////// |
| 1679 | //スタイル |
| 1680 | |
| 1681 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
| 1682 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
| 1683 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
| 1684 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
| 1685 | |
| 1686 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_AUTOCHECKBOX)==BS_AUTOCHECKBOX) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0); |
| 1687 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_AUTO3STATE)==BS_AUTO3STATE){ |
| 1688 | SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0); |
| 1689 | SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0); |
| 1690 | } |
| 1691 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_3STATE)==BS_3STATE) SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0); |
| 1692 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0); |
| 1693 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0); |
| 1694 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); |
| 1695 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); |
| 1696 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0); |
| 1697 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); |
| 1698 | |
| 1699 | |
| 1700 | ////////////////// |
| 1701 | // 水平方向の配置 |
| 1702 | ////////////////// |
| 1703 | |
| 1704 | //"デフォルト" |
| 1705 | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_DEFAULT); |
| 1706 | //"左端" |
| 1707 | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_LEFT); |
| 1708 | //"右端" |
| 1709 | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_RIGHT); |
| 1710 | //"中央" |
| 1711 | SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_ADDSTRING,0,(long)STRING_CENTER); |
| 1712 | |
| 1713 | //ビットを考慮してBS_CENTERを最初に比較する |
| 1714 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0); |
| 1715 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0); |
| 1716 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0); |
| 1717 | else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0); |
| 1718 | |
| 1719 | |
| 1720 | ////////////////// |
| 1721 | // 垂直方向の配置 |
| 1722 | ////////////////// |
| 1723 | |
| 1724 | //"デフォルト" |
| 1725 | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_DEFAULT); |
| 1726 | //"上端" |
| 1727 | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_TOP); |
| 1728 | //"下端" |
| 1729 | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_BOTTOM); |
| 1730 | //"中央" |
| 1731 | SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_ADDSTRING,0,(long)STRING_CENTER); |
| 1732 | |
| 1733 | //ビットを考慮してBS_VCENTERを最初に比較する |
| 1734 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0); |
| 1735 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0); |
| 1736 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0); |
| 1737 | else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0); |
| 1738 | |
| 1739 | |
| 1740 | bInitial=0; |
| 1741 | break; |
| 1742 | } |
1747 | | } |
| 1815 | return 1; |
| 1816 | } |
| 1817 | break; |
| 1818 | case IDC_BS_PUSHLIKE: |
| 1819 | if(HIWORD(wParam)==BN_CLICKED){ |
| 1820 | //変更情報 |
| 1821 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1822 | |
| 1823 | if(SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_GETCHECK,0,0)) |
| 1824 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_PUSHLIKE; |
| 1825 | else |
| 1826 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_PUSHLIKE; |
| 1827 | DrawRadWindow(i,pWindowInfo); |
| 1828 | return 1; |
| 1829 | } |
| 1830 | break; |
| 1831 | case IDC_BS_LEFTTEXT: |
| 1832 | if(HIWORD(wParam)==BN_CLICKED){ |
| 1833 | //変更情報 |
| 1834 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1835 | |
| 1836 | if(SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_GETCHECK,0,0)) |
| 1837 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFTTEXT; |
| 1838 | else |
| 1839 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_LEFTTEXT; |
| 1840 | DrawRadWindow(i,pWindowInfo); |
| 1841 | return 1; |
| 1842 | } |
| 1843 | break; |
| 1844 | case IDC_BS_ICON: |
| 1845 | if(HIWORD(wParam)==BN_CLICKED){ |
| 1846 | //変更情報 |
| 1847 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1848 | |
| 1849 | if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){ |
| 1850 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_ICON; |
| 1851 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP; |
| 1852 | SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0); |
| 1853 | } |
| 1854 | else |
| 1855 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON; |
| 1856 | DrawRadWindow(i,pWindowInfo); |
| 1857 | return 1; |
| 1858 | } |
| 1859 | break; |
| 1860 | case IDC_BS_BITMAP: |
| 1861 | if(HIWORD(wParam)==BN_CLICKED){ |
| 1862 | //変更情報 |
| 1863 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1864 | |
| 1865 | if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){ |
| 1866 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BITMAP; |
| 1867 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON; |
| 1868 | SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0); |
| 1869 | } |
| 1870 | else |
| 1871 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP; |
| 1872 | DrawRadWindow(i,pWindowInfo); |
| 1873 | return 1; |
| 1874 | } |
| 1875 | break; |
| 1876 | case IDC_BS_MULTILINE: |
| 1877 | if(HIWORD(wParam)==BN_CLICKED){ |
| 1878 | //変更情報 |
| 1879 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1880 | |
| 1881 | if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0)) |
| 1882 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_MULTILINE; |
| 1883 | else |
| 1884 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_MULTILINE; |
| 1885 | DrawRadWindow(i,pWindowInfo); |
| 1886 | return 1; |
| 1887 | } |
| 1888 | break; |
| 1889 | case IDC_BS_NOTIFY: |
| 1890 | if(HIWORD(wParam)==BN_CLICKED){ |
| 1891 | //変更情報 |
| 1892 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1893 | |
| 1894 | if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) |
| 1895 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_NOTIFY; |
| 1896 | else |
| 1897 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_NOTIFY; |
| 1898 | return 1; |
| 1899 | } |
| 1900 | break; |
| 1901 | |
| 1902 | case IDC_BS_HPOS: |
| 1903 | if(HIWORD(wParam)==CBN_SELCHANGE){ |
| 1904 | //変更情報 |
| 1905 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1906 | |
| 1907 | i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0); |
| 1908 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_LEFT|BS_RIGHT|BS_CENTER); |
| 1909 | if(i3==1) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFT; |
| 1910 | else if(i3==2) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_RIGHT; |
| 1911 | else if(i3==3) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CENTER; |
| 1912 | DrawRadWindow(i,pWindowInfo); |
| 1913 | return 1; |
| 1914 | } |
| 1915 | break; |
| 1916 | case IDC_BS_VPOS: |
| 1917 | if(HIWORD(wParam)==CBN_SELCHANGE){ |
| 1918 | //変更情報 |
| 1919 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 1920 | |
| 1921 | i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0); |
| 1922 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER); |
| 1923 | if(i3==1) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_TOP; |
| 1924 | else if(i3==2) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BOTTOM; |
| 1925 | else if(i3==3) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_VCENTER; |
| 1926 | DrawRadWindow(i,pWindowInfo); |
| 1927 | return 1; |
| 1928 | } |
| 1929 | break; |
| 1930 | |
| 1931 | case IDC_EXSTYLE: |
| 1932 | if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,(DLGPROC)DlgRadProperty_Item_ExStyle)) return 1; |
| 1933 | DrawRadWindow(i,pWindowInfo); |
1749 | | } |
1750 | | break; |
1751 | | case IDC_BS_3STATE: |
1752 | | if(HIWORD(wParam)==BN_CLICKED){ |
1753 | | //変更情報 |
1754 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1755 | | |
1756 | | if(SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_GETCHECK,0,0)){ |
1757 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0F)==BS_CHECKBOX){ |
1758 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0; |
1759 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_3STATE; |
1760 | | } |
1761 | | else if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0F)==BS_AUTOCHECKBOX){ |
1762 | | //自動チェック |
1763 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0; |
1764 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_AUTO3STATE; |
1765 | | } |
1766 | | } |
1767 | | else{ |
1768 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0F)==BS_3STATE){ |
1769 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0; |
1770 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CHECKBOX; |
1771 | | } |
1772 | | else if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0F)==BS_AUTO3STATE){ |
1773 | | //自動チェック |
1774 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0; |
1775 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_AUTOCHECKBOX; |
1776 | | } |
1777 | | } |
1778 | | return 1; |
1779 | | } |
1780 | | break; |
1781 | | case IDC_BS_PUSHLIKE: |
1782 | | if(HIWORD(wParam)==BN_CLICKED){ |
1783 | | //変更情報 |
1784 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1785 | | |
1786 | | if(SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_GETCHECK,0,0)) |
1787 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_PUSHLIKE; |
1788 | | else |
1789 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_PUSHLIKE; |
1790 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1791 | | return 1; |
1792 | | } |
1793 | | break; |
1794 | | case IDC_BS_LEFTTEXT: |
1795 | | if(HIWORD(wParam)==BN_CLICKED){ |
1796 | | //変更情報 |
1797 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1798 | | |
1799 | | if(SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_GETCHECK,0,0)) |
1800 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFTTEXT; |
1801 | | else |
1802 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_LEFTTEXT; |
1803 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1804 | | return 1; |
1805 | | } |
1806 | | break; |
1807 | | case IDC_BS_ICON: |
1808 | | if(HIWORD(wParam)==BN_CLICKED){ |
1809 | | //変更情報 |
1810 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1811 | | |
1812 | | if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){ |
1813 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_ICON; |
1814 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP; |
1815 | | SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0); |
1816 | | } |
1817 | | else |
1818 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON; |
1819 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1820 | | return 1; |
1821 | | } |
1822 | | break; |
1823 | | case IDC_BS_BITMAP: |
1824 | | if(HIWORD(wParam)==BN_CLICKED){ |
1825 | | //変更情報 |
1826 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1827 | | |
1828 | | if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){ |
1829 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BITMAP; |
1830 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON; |
1831 | | SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0); |
1832 | | } |
1833 | | else |
1834 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP; |
1835 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1836 | | return 1; |
1837 | | } |
1838 | | break; |
1839 | | case IDC_BS_MULTILINE: |
1840 | | if(HIWORD(wParam)==BN_CLICKED){ |
1841 | | //変更情報 |
1842 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1843 | | |
1844 | | if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0)) |
1845 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_MULTILINE; |
1846 | | else |
1847 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_MULTILINE; |
1848 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1849 | | return 1; |
1850 | | } |
1851 | | break; |
1852 | | case IDC_BS_NOTIFY: |
1853 | | if(HIWORD(wParam)==BN_CLICKED){ |
1854 | | //変更情報 |
1855 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1856 | | |
1857 | | if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) |
1858 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_NOTIFY; |
1859 | | else |
1860 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_NOTIFY; |
1861 | | return 1; |
1862 | | } |
1863 | | break; |
1864 | | |
1865 | | case IDC_BS_HPOS: |
1866 | | if(HIWORD(wParam)==CBN_SELCHANGE){ |
1867 | | //変更情報 |
1868 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1869 | | |
1870 | | i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0); |
1871 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_LEFT|BS_RIGHT|BS_CENTER); |
1872 | | if(i3==1) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFT; |
1873 | | else if(i3==2) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_RIGHT; |
1874 | | else if(i3==3) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CENTER; |
1875 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1876 | | return 1; |
1877 | | } |
1878 | | break; |
1879 | | case IDC_BS_VPOS: |
1880 | | if(HIWORD(wParam)==CBN_SELCHANGE){ |
1881 | | //変更情報 |
1882 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1883 | | |
1884 | | i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0); |
1885 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER); |
1886 | | if(i3==1) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_TOP; |
1887 | | else if(i3==2) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BOTTOM; |
1888 | | else if(i3==3) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_VCENTER; |
1889 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1890 | | return 1; |
1891 | | } |
1892 | | break; |
1893 | | |
1894 | | case IDC_EXSTYLE: |
1895 | | if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,(DLGPROC)DlgRadProperty_Item_ExStyle)) return 1; |
1896 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
1897 | | return 1; |
| 1935 | } |
1923 | | bInitial=1; |
1924 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
1925 | | i2=GetWndInfoNum(MdiInfo[i].path); |
1926 | | |
1927 | | SetDlgItemText(hwnd,IDC_IDNAME,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
1928 | | |
1929 | | |
1930 | | ///////////////////////////////// |
1931 | | // スタイル |
1932 | | //////////// |
1933 | | |
1934 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
1935 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
1936 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
1937 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
1938 | | |
1939 | | //////// |
1940 | | // 選択 |
1941 | | //////// |
1942 | | |
1943 | | //"デフォルト" |
1944 | | SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_ADDSTRING,0,(long)STRING_DEFAULT); |
1945 | | //"ドロップ ダウン" |
1946 | | SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_ADDSTRING,0,(long)STRING_COMBOBOXPROP_STYLE_DROPDOWN); |
1947 | | //"ドロップ ダウン リスト" |
1948 | | SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_ADDSTRING,0,(long)STRING_COMBOBOXPROP_STYLE_DROPDOWNLIST); |
1949 | | |
1950 | | //ビットを考慮してCBS_DROPDOWNLISTを最初に比較する |
1951 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_DROPDOWNLIST)==CBS_DROPDOWNLIST) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,2,0); |
1952 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_SIMPLE) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,0,0); |
1953 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_DROPDOWN) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,1,0); |
1954 | | |
1955 | | |
1956 | | //////////////// |
1957 | | // オーナー描画 |
1958 | | //////////////// |
1959 | | |
1960 | | //"なし" |
1961 | | SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_ADDSTRING,0,(long)STRING_NONE_); |
1962 | | //"固定" |
1963 | | SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_ADDSTRING,0,(long)STRING_OWNERDRAW_FIXED); |
1964 | | //"可変" |
1965 | | SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_ADDSTRING,0,(long)STRING_OWNERDRAW_VARIABLE); |
1966 | | |
1967 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,1,0); |
1968 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,2,0); |
1969 | | else SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,0,0); |
1970 | | |
1971 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0); |
1972 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_SORT) SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_SETCHECK,BST_CHECKED,0); |
1973 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_NOINTEGRALHEIGHT) SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_SETCHECK,BST_CHECKED,0); |
1974 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0); |
1975 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0); |
1976 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0); |
1977 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0); |
1978 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_UPPERCASE) SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_SETCHECK,BST_CHECKED,0); |
1979 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_LOWERCASE) SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_SETCHECK,BST_CHECKED,0); |
1980 | | |
1981 | | RadProperty_ComboBox_StylingOrder(hwnd,&ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
1982 | | |
1983 | | |
1984 | | bInitial=0; |
1985 | | break; |
| 1961 | { |
| 1962 | bInitial=1; |
| 1963 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 1964 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 1965 | |
| 1966 | SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
| 1967 | |
| 1968 | |
| 1969 | ///////////////////////////////// |
| 1970 | // スタイル |
| 1971 | //////////// |
| 1972 | |
| 1973 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
| 1974 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
| 1975 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
| 1976 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
| 1977 | |
| 1978 | //////// |
| 1979 | // 選択 |
| 1980 | //////// |
| 1981 | |
| 1982 | //"デフォルト" |
| 1983 | SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_ADDSTRING,0,(long)STRING_DEFAULT); |
| 1984 | //"ドロップ ダウン" |
| 1985 | SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_ADDSTRING,0,(long)STRING_COMBOBOXPROP_STYLE_DROPDOWN); |
| 1986 | //"ドロップ ダウン リスト" |
| 1987 | SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_ADDSTRING,0,(long)STRING_COMBOBOXPROP_STYLE_DROPDOWNLIST); |
| 1988 | |
| 1989 | //ビットを考慮してCBS_DROPDOWNLISTを最初に比較する |
| 1990 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_DROPDOWNLIST)==CBS_DROPDOWNLIST) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,2,0); |
| 1991 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_SIMPLE) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,0,0); |
| 1992 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_DROPDOWN) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,1,0); |
| 1993 | |
| 1994 | |
| 1995 | //////////////// |
| 1996 | // オーナー描画 |
| 1997 | //////////////// |
| 1998 | |
| 1999 | //"なし" |
| 2000 | SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_ADDSTRING,0,(long)STRING_NONE_); |
| 2001 | //"固定" |
| 2002 | SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_ADDSTRING,0,(long)STRING_OWNERDRAW_FIXED); |
| 2003 | //"可変" |
| 2004 | SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_ADDSTRING,0,(long)STRING_OWNERDRAW_VARIABLE); |
| 2005 | |
| 2006 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,1,0); |
| 2007 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,2,0); |
| 2008 | else SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,0,0); |
| 2009 | |
| 2010 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0); |
| 2011 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_SORT) SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_SETCHECK,BST_CHECKED,0); |
| 2012 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_NOINTEGRALHEIGHT) SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_SETCHECK,BST_CHECKED,0); |
| 2013 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0); |
| 2014 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0); |
| 2015 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0); |
| 2016 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0); |
| 2017 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_UPPERCASE) SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_SETCHECK,BST_CHECKED,0); |
| 2018 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_LOWERCASE) SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_SETCHECK,BST_CHECKED,0); |
| 2019 | |
| 2020 | RadProperty_ComboBox_StylingOrder(hwnd,&pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2021 | |
| 2022 | |
| 2023 | bInitial=0; |
| 2024 | break; |
| 2025 | } |
1987 | | |
1988 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
1989 | | if(i==-1) return 1; |
1990 | | i2=GetWndInfoNum(MdiInfo[i].path); |
1991 | | |
1992 | | //共通スタイル |
1993 | | if(bInitial==0){ |
1994 | | if(DefaultItemStyles(hwnd,i,i2,wParam)) return 1; |
1995 | | } |
1996 | | |
1997 | | switch(LOWORD(wParam)){ |
1998 | | case IDC_CBS_TYPE: |
1999 | | if(HIWORD(wParam)==CBN_SELCHANGE){ |
2000 | | //変更情報 |
2001 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2002 | | |
2003 | | i3=SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_GETCURSEL,0,0); |
2004 | | //CBS_DROPDOWNLIST=CBS_SIMPLE | CBS_DROPDOWN |
2005 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(CBS_DROPDOWNLIST); |
2006 | | if(i3==0) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_SIMPLE; |
2007 | | else if(i3==1) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_DROPDOWN; |
2008 | | else if(i3==2) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_DROPDOWNLIST; |
2009 | | |
2010 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
| 2027 | { |
| 2028 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 2029 | if(i==-1) return 1; |
| 2030 | i2=GetWndInfoNum(MdiInfo[i].path); |
| 2031 | WINDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[i2]; |
| 2032 | |
| 2033 | //共通スタイル |
| 2034 | if(bInitial==0){ |
| 2035 | if(DefaultItemStyles(hwnd,i,i2,wParam)) return 1; |
| 2036 | } |
| 2037 | |
| 2038 | switch(LOWORD(wParam)){ |
| 2039 | case IDC_CBS_TYPE: |
| 2040 | if(HIWORD(wParam)==CBN_SELCHANGE){ |
| 2041 | //変更情報 |
| 2042 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2043 | |
| 2044 | i3=SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_GETCURSEL,0,0); |
| 2045 | //CBS_DROPDOWNLIST=CBS_SIMPLE | CBS_DROPDOWN |
| 2046 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(CBS_DROPDOWNLIST); |
| 2047 | if(i3==0) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_SIMPLE; |
| 2048 | else if(i3==1) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_DROPDOWN; |
| 2049 | else if(i3==2) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_DROPDOWNLIST; |
| 2050 | |
| 2051 | DrawRadWindow(i,pWindowInfo); |
| 2052 | return 1; |
| 2053 | } |
| 2054 | break; |
| 2055 | case IDC_CBS_OWNERDRAW: |
| 2056 | if(HIWORD(wParam)==CBN_SELCHANGE){ |
| 2057 | //変更情報 |
| 2058 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2059 | |
| 2060 | i3=SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_GETCURSEL,0,0); |
| 2061 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(CBS_OWNERDRAWFIXED|CBS_OWNERDRAWVARIABLE); |
| 2062 | if(i3==1) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_OWNERDRAWFIXED; |
| 2063 | else if(i3==2) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_OWNERDRAWVARIABLE; |
| 2064 | |
| 2065 | RadProperty_ComboBox_StylingOrder(hwnd,&pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2066 | return 1; |
| 2067 | } |
| 2068 | break; |
| 2069 | |
| 2070 | case IDC_CBS_HASSTRINGS: |
| 2071 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2072 | //変更情報 |
| 2073 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2074 | |
| 2075 | if(SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_GETCHECK,0,0)) |
| 2076 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_HASSTRINGS; |
| 2077 | else |
| 2078 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_HASSTRINGS; |
| 2079 | return 1; |
| 2080 | } |
| 2081 | break; |
| 2082 | case IDC_CBS_SORT: |
| 2083 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2084 | //変更情報 |
| 2085 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2086 | |
| 2087 | if(SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_GETCHECK,0,0)) |
| 2088 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_SORT; |
| 2089 | else |
| 2090 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_SORT; |
| 2091 | return 1; |
| 2092 | } |
| 2093 | break; |
| 2094 | case IDC_CBS_NOINTEGRALHEIGHT: |
| 2095 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2096 | //変更情報 |
| 2097 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2098 | |
| 2099 | if(SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_GETCHECK,0,0)) |
| 2100 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_NOINTEGRALHEIGHT; |
| 2101 | else |
| 2102 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_NOINTEGRALHEIGHT; |
| 2103 | return 1; |
| 2104 | } |
| 2105 | break; |
| 2106 | case IDC_CBS_OEMCONVERT: |
| 2107 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2108 | //変更情報 |
| 2109 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2110 | |
| 2111 | if(SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_GETCHECK,0,0)) |
| 2112 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_OEMCONVERT; |
| 2113 | else |
| 2114 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_OEMCONVERT; |
| 2115 | return 1; |
| 2116 | } |
| 2117 | break; |
| 2118 | case IDC_STYLE_VSCROLL: |
| 2119 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2120 | //変更情報 |
| 2121 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2122 | |
| 2123 | if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0)) |
| 2124 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=WS_VSCROLL; |
| 2125 | else |
| 2126 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~WS_VSCROLL; |
| 2127 | DrawRadWindow(i,pWindowInfo); |
| 2128 | return 1; |
| 2129 | } |
| 2130 | break; |
| 2131 | case IDC_CBS_AUTOHSCROLL: |
| 2132 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2133 | //変更情報 |
| 2134 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2135 | |
| 2136 | if(SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_GETCHECK,0,0)) |
| 2137 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_AUTOHSCROLL; |
| 2138 | else |
| 2139 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_AUTOHSCROLL; |
| 2140 | return 1; |
| 2141 | } |
| 2142 | break; |
| 2143 | case IDC_CBS_DISABLENOSCROLL: |
| 2144 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2145 | //変更情報 |
| 2146 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2147 | |
| 2148 | if(SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_GETCHECK,0,0)) |
| 2149 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_DISABLENOSCROLL; |
| 2150 | else |
| 2151 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_DISABLENOSCROLL; |
| 2152 | DrawRadWindow(i,pWindowInfo); |
| 2153 | return 1; |
| 2154 | } |
| 2155 | break; |
| 2156 | case IDC_CBS_UPPERCASE: |
| 2157 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2158 | //変更情報 |
| 2159 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2160 | |
| 2161 | if(SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_GETCHECK,0,0)) |
| 2162 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_UPPERCASE; |
| 2163 | else |
| 2164 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_UPPERCASE; |
| 2165 | return 1; |
| 2166 | } |
| 2167 | break; |
| 2168 | case IDC_CBS_LOWERCASE: |
| 2169 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2170 | //変更情報 |
| 2171 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2172 | |
| 2173 | if(SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_GETCHECK,0,0)) |
| 2174 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_LOWERCASE; |
| 2175 | else |
| 2176 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_LOWERCASE; |
| 2177 | return 1; |
| 2178 | } |
| 2179 | break; |
| 2180 | |
| 2181 | case IDC_EXSTYLE: |
| 2182 | if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,(DLGPROC)DlgRadProperty_Item_ExStyle)) return 1; |
| 2183 | DrawRadWindow(i,pWindowInfo); |
2012 | | } |
2013 | | break; |
2014 | | case IDC_CBS_OWNERDRAW: |
2015 | | if(HIWORD(wParam)==CBN_SELCHANGE){ |
2016 | | //変更情報 |
2017 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2018 | | |
2019 | | i3=SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_GETCURSEL,0,0); |
2020 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(CBS_OWNERDRAWFIXED|CBS_OWNERDRAWVARIABLE); |
2021 | | if(i3==1) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_OWNERDRAWFIXED; |
2022 | | else if(i3==2) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_OWNERDRAWVARIABLE; |
2023 | | |
2024 | | RadProperty_ComboBox_StylingOrder(hwnd,&ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2025 | | return 1; |
2026 | | } |
2027 | | break; |
2028 | | |
2029 | | case IDC_CBS_HASSTRINGS: |
2030 | | if(HIWORD(wParam)==BN_CLICKED){ |
2031 | | //変更情報 |
2032 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2033 | | |
2034 | | if(SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_GETCHECK,0,0)) |
2035 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_HASSTRINGS; |
2036 | | else |
2037 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_HASSTRINGS; |
2038 | | return 1; |
2039 | | } |
2040 | | break; |
2041 | | case IDC_CBS_SORT: |
2042 | | if(HIWORD(wParam)==BN_CLICKED){ |
2043 | | //変更情報 |
2044 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2045 | | |
2046 | | if(SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_GETCHECK,0,0)) |
2047 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_SORT; |
2048 | | else |
2049 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_SORT; |
2050 | | return 1; |
2051 | | } |
2052 | | break; |
2053 | | case IDC_CBS_NOINTEGRALHEIGHT: |
2054 | | if(HIWORD(wParam)==BN_CLICKED){ |
2055 | | //変更情報 |
2056 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2057 | | |
2058 | | if(SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_GETCHECK,0,0)) |
2059 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_NOINTEGRALHEIGHT; |
2060 | | else |
2061 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_NOINTEGRALHEIGHT; |
2062 | | return 1; |
2063 | | } |
2064 | | break; |
2065 | | case IDC_CBS_OEMCONVERT: |
2066 | | if(HIWORD(wParam)==BN_CLICKED){ |
2067 | | //変更情報 |
2068 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2069 | | |
2070 | | if(SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_GETCHECK,0,0)) |
2071 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_OEMCONVERT; |
2072 | | else |
2073 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_OEMCONVERT; |
2074 | | return 1; |
2075 | | } |
2076 | | break; |
2077 | | case IDC_STYLE_VSCROLL: |
2078 | | if(HIWORD(wParam)==BN_CLICKED){ |
2079 | | //変更情報 |
2080 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2081 | | |
2082 | | if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0)) |
2083 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=WS_VSCROLL; |
2084 | | else |
2085 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~WS_VSCROLL; |
2086 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2087 | | return 1; |
2088 | | } |
2089 | | break; |
2090 | | case IDC_CBS_AUTOHSCROLL: |
2091 | | if(HIWORD(wParam)==BN_CLICKED){ |
2092 | | //変更情報 |
2093 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2094 | | |
2095 | | if(SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_GETCHECK,0,0)) |
2096 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_AUTOHSCROLL; |
2097 | | else |
2098 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_AUTOHSCROLL; |
2099 | | return 1; |
2100 | | } |
2101 | | break; |
2102 | | case IDC_CBS_DISABLENOSCROLL: |
2103 | | if(HIWORD(wParam)==BN_CLICKED){ |
2104 | | //変更情報 |
2105 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2106 | | |
2107 | | if(SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_GETCHECK,0,0)) |
2108 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_DISABLENOSCROLL; |
2109 | | else |
2110 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_DISABLENOSCROLL; |
2111 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2112 | | return 1; |
2113 | | } |
2114 | | break; |
2115 | | case IDC_CBS_UPPERCASE: |
2116 | | if(HIWORD(wParam)==BN_CLICKED){ |
2117 | | //変更情報 |
2118 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2119 | | |
2120 | | if(SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_GETCHECK,0,0)) |
2121 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_UPPERCASE; |
2122 | | else |
2123 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_UPPERCASE; |
2124 | | return 1; |
2125 | | } |
2126 | | break; |
2127 | | case IDC_CBS_LOWERCASE: |
2128 | | if(HIWORD(wParam)==BN_CLICKED){ |
2129 | | //変更情報 |
2130 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2131 | | |
2132 | | if(SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_GETCHECK,0,0)) |
2133 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_LOWERCASE; |
2134 | | else |
2135 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_LOWERCASE; |
2136 | | return 1; |
2137 | | } |
2138 | | break; |
2139 | | |
2140 | | case IDC_EXSTYLE: |
2141 | | if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,(DLGPROC)DlgRadProperty_Item_ExStyle)) return 1; |
2142 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2143 | | return 1; |
2144 | | } |
2145 | | break; |
| 2185 | } |
| 2186 | break; |
| 2187 | } |
2184 | | bInitial=1; |
2185 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
2186 | | i2=GetWndInfoNum(MdiInfo[i].path); |
2187 | | |
2188 | | SetDlgItemText(hwnd,IDC_IDNAME,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
2189 | | SetDlgItemText(hwnd,IDC_CAPTION,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption); |
2190 | | |
2191 | | |
2192 | | //////////// |
2193 | | // スタイル |
2194 | | //////////// |
2195 | | |
2196 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
2197 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
2198 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
2199 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
2200 | | |
2201 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_MULTILINE) SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_SETCHECK,BST_CHECKED,0); |
2202 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_NUMBER) SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_SETCHECK,BST_CHECKED,0); |
2203 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0); |
2204 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0); |
2205 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0); |
2206 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_AUTOVSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_SETCHECK,BST_CHECKED,0); |
2207 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_PASSWORD) SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_SETCHECK,BST_CHECKED,0); |
2208 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_NOHIDESEL) SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_SETCHECK,BST_CHECKED,0); |
2209 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0); |
2210 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_WANTRETURN) SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_SETCHECK,BST_CHECKED,0); |
2211 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_UPPERCASE) SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_CHECKED,0); |
2212 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_LOWERCASE) SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_CHECKED,0); |
2213 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_READONLY) SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_SETCHECK,BST_CHECKED,0); |
2214 | | |
2215 | | |
2216 | | ////////////////// |
2217 | | // テキストの配置 |
2218 | | ////////////////// |
2219 | | |
2220 | | //"左端" |
2221 | | SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_ADDSTRING,0,(long)STRING_LEFT); |
2222 | | //"中央" |
2223 | | SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_ADDSTRING,0,(long)STRING_CENTER); |
2224 | | //"右端" |
2225 | | SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_ADDSTRING,0,(long)STRING_RIGHT); |
2226 | | |
2227 | | //ビットを考慮してES_LEFTを最後に検討する |
2228 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_CENTER) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,1,0); |
2229 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_RIGHT) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,2,0); |
2230 | | else SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,0,0); |
2231 | | |
2232 | | RadProperty_Edit_StylingOrder(hwnd,&ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2233 | | |
2234 | | |
2235 | | bInitial=0; |
2236 | | break; |
| 2226 | { |
| 2227 | bInitial=1; |
| 2228 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 2229 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 2230 | |
| 2231 | SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
| 2232 | SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption); |
| 2233 | |
| 2234 | |
| 2235 | //////////// |
| 2236 | // スタイル |
| 2237 | //////////// |
| 2238 | |
| 2239 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
| 2240 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
| 2241 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
| 2242 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
| 2243 | |
| 2244 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_MULTILINE) SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_SETCHECK,BST_CHECKED,0); |
| 2245 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_NUMBER) SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_SETCHECK,BST_CHECKED,0); |
| 2246 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0); |
| 2247 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0); |
| 2248 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0); |
| 2249 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_AUTOVSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_SETCHECK,BST_CHECKED,0); |
| 2250 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_PASSWORD) SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_SETCHECK,BST_CHECKED,0); |
| 2251 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_NOHIDESEL) SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_SETCHECK,BST_CHECKED,0); |
| 2252 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0); |
| 2253 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_WANTRETURN) SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_SETCHECK,BST_CHECKED,0); |
| 2254 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_UPPERCASE) SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_CHECKED,0); |
| 2255 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_LOWERCASE) SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_CHECKED,0); |
| 2256 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_READONLY) SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_SETCHECK,BST_CHECKED,0); |
| 2257 | |
| 2258 | |
| 2259 | ////////////////// |
| 2260 | // テキストの配置 |
| 2261 | ////////////////// |
| 2262 | |
| 2263 | //"左端" |
| 2264 | SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_ADDSTRING,0,(long)STRING_LEFT); |
| 2265 | //"中央" |
| 2266 | SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_ADDSTRING,0,(long)STRING_CENTER); |
| 2267 | //"右端" |
| 2268 | SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_ADDSTRING,0,(long)STRING_RIGHT); |
| 2269 | |
| 2270 | //ビットを考慮してES_LEFTを最後に検討する |
| 2271 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_CENTER) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,1,0); |
| 2272 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_RIGHT) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,2,0); |
| 2273 | else SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,0,0); |
| 2274 | |
| 2275 | RadProperty_Edit_StylingOrder(hwnd,&pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2276 | |
| 2277 | |
| 2278 | bInitial=0; |
| 2279 | break; |
| 2280 | } |
2238 | | |
2239 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
2240 | | if(i==-1) return 1; |
2241 | | i2=GetWndInfoNum(MdiInfo[i].path); |
2242 | | |
2243 | | //共通スタイル |
2244 | | if(bInitial==0){ |
2245 | | if(DefaultItemStyles(hwnd,i,i2,wParam)) return 1; |
2246 | | } |
2247 | | |
2248 | | switch(LOWORD(wParam)){ |
2249 | | case IDC_ES_MULTILINE: |
2250 | | if(HIWORD(wParam)==BN_CLICKED){ |
2251 | | //変更情報 |
2252 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2253 | | |
2254 | | if(SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_GETCHECK,0,0)) |
2255 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_MULTILINE; |
2256 | | else |
2257 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_MULTILINE; |
2258 | | RadProperty_Edit_StylingOrder(hwnd,&ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2259 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
| 2282 | { |
| 2283 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 2284 | if(i==-1) return 1; |
| 2285 | i2=GetWndInfoNum(MdiInfo[i].path); |
| 2286 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 2287 | |
| 2288 | //共通スタイル |
| 2289 | if(bInitial==0){ |
| 2290 | if(DefaultItemStyles(hwnd,i,i2,wParam)) return 1; |
| 2291 | } |
| 2292 | |
| 2293 | switch(LOWORD(wParam)){ |
| 2294 | case IDC_ES_MULTILINE: |
| 2295 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2296 | //変更情報 |
| 2297 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2298 | |
| 2299 | if(SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_GETCHECK,0,0)) |
| 2300 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_MULTILINE; |
| 2301 | else |
| 2302 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_MULTILINE; |
| 2303 | RadProperty_Edit_StylingOrder(hwnd,&pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2304 | DrawRadWindow(i,pWindowInfo); |
| 2305 | return 1; |
| 2306 | } |
| 2307 | break; |
| 2308 | case IDC_ES_NUMBER: |
| 2309 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2310 | //変更情報 |
| 2311 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2312 | |
| 2313 | if(SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_GETCHECK,0,0)) |
| 2314 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_NUMBER; |
| 2315 | else |
| 2316 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_NUMBER; |
| 2317 | return 1; |
| 2318 | } |
| 2319 | break; |
| 2320 | case IDC_STYLE_HSCROLL: |
| 2321 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2322 | //変更情報 |
| 2323 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2324 | |
| 2325 | if(SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_GETCHECK,0,0)) |
| 2326 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=WS_HSCROLL; |
| 2327 | else |
| 2328 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~WS_HSCROLL; |
| 2329 | DrawRadWindow(i,pWindowInfo); |
| 2330 | return 1; |
| 2331 | } |
| 2332 | break; |
| 2333 | case IDC_ES_AUTOHSCROLL: |
| 2334 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2335 | //変更情報 |
| 2336 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2337 | |
| 2338 | if(SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_GETCHECK,0,0)) |
| 2339 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_AUTOHSCROLL; |
| 2340 | else |
| 2341 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_AUTOHSCROLL; |
| 2342 | DrawRadWindow(i,pWindowInfo); |
| 2343 | return 1; |
| 2344 | } |
| 2345 | break; |
| 2346 | case IDC_STYLE_VSCROLL: |
| 2347 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2348 | //変更情報 |
| 2349 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2350 | |
| 2351 | if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0)) |
| 2352 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=WS_VSCROLL; |
| 2353 | else |
| 2354 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~WS_VSCROLL; |
| 2355 | DrawRadWindow(i,pWindowInfo); |
| 2356 | return 1; |
| 2357 | } |
| 2358 | break; |
| 2359 | case IDC_ES_AUTOVSCROLL: |
| 2360 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2361 | //変更情報 |
| 2362 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2363 | |
| 2364 | if(SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_GETCHECK,0,0)) |
| 2365 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_AUTOVSCROLL; |
| 2366 | else |
| 2367 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_AUTOVSCROLL; |
| 2368 | DrawRadWindow(i,pWindowInfo); |
| 2369 | return 1; |
| 2370 | } |
| 2371 | break; |
| 2372 | case IDC_ES_PASSWORD: |
| 2373 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2374 | //変更情報 |
| 2375 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2376 | |
| 2377 | if(SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_GETCHECK,0,0)) |
| 2378 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_PASSWORD; |
| 2379 | else |
| 2380 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_PASSWORD; |
| 2381 | DrawRadWindow(i,pWindowInfo); |
| 2382 | return 1; |
| 2383 | } |
| 2384 | break; |
| 2385 | case IDC_ES_NOHIDESEL: |
| 2386 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2387 | //変更情報 |
| 2388 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2389 | |
| 2390 | if(SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_GETCHECK,0,0)) |
| 2391 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_NOHIDESEL; |
| 2392 | else |
| 2393 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_NOHIDESEL; |
| 2394 | DrawRadWindow(i,pWindowInfo); |
| 2395 | return 1; |
| 2396 | } |
| 2397 | break; |
| 2398 | case IDC_ES_OEMCONVERT: |
| 2399 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2400 | //変更情報 |
| 2401 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2402 | |
| 2403 | if(SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_GETCHECK,0,0)) |
| 2404 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_OEMCONVERT; |
| 2405 | else |
| 2406 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_OEMCONVERT; |
| 2407 | DrawRadWindow(i,pWindowInfo); |
| 2408 | return 1; |
| 2409 | } |
| 2410 | break; |
| 2411 | case IDC_ES_WANTRETURN: |
| 2412 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2413 | //変更情報 |
| 2414 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2415 | |
| 2416 | if(SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_GETCHECK,0,0)) |
| 2417 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_WANTRETURN; |
| 2418 | else |
| 2419 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_WANTRETURN; |
| 2420 | DrawRadWindow(i,pWindowInfo); |
| 2421 | return 1; |
| 2422 | } |
| 2423 | break; |
| 2424 | case IDC_ES_UPPERCASE: |
| 2425 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2426 | //変更情報 |
| 2427 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2428 | |
| 2429 | if(SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_GETCHECK,0,0)){ |
| 2430 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_LOWERCASE; |
| 2431 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_UPPERCASE; |
| 2432 | SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_UNCHECKED,0); |
| 2433 | } |
| 2434 | else |
| 2435 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_UPPERCASE; |
| 2436 | DrawRadWindow(i,pWindowInfo); |
| 2437 | return 1; |
| 2438 | } |
| 2439 | break; |
| 2440 | case IDC_ES_LOWERCASE: |
| 2441 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2442 | //変更情報 |
| 2443 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2444 | |
| 2445 | if(SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_GETCHECK,0,0)){ |
| 2446 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_UPPERCASE; |
| 2447 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_LOWERCASE; |
| 2448 | SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_UNCHECKED,0); |
| 2449 | } |
| 2450 | else |
| 2451 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_LOWERCASE; |
| 2452 | DrawRadWindow(i,pWindowInfo); |
| 2453 | return 1; |
| 2454 | } |
| 2455 | break; |
| 2456 | case IDC_ES_READONLY: |
| 2457 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2458 | //変更情報 |
| 2459 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2460 | |
| 2461 | if(SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_GETCHECK,0,0)) |
| 2462 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_READONLY; |
| 2463 | else |
| 2464 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_READONLY; |
| 2465 | DrawRadWindow(i,pWindowInfo); |
| 2466 | return 1; |
| 2467 | } |
| 2468 | break; |
| 2469 | |
| 2470 | case IDC_ES_TEXTPOS: |
| 2471 | if(HIWORD(wParam)==CBN_SELCHANGE){ |
| 2472 | //変更情報 |
| 2473 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2474 | |
| 2475 | i3=SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_GETCURSEL,0,0); |
| 2476 | //ES_LEFT=0 |
| 2477 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(ES_CENTER|ES_RIGHT); |
| 2478 | if(i3==1) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_CENTER; |
| 2479 | else if(i3==2) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_RIGHT; |
| 2480 | DrawRadWindow(i,pWindowInfo); |
| 2481 | return 1; |
| 2482 | } |
| 2483 | break; |
| 2484 | |
| 2485 | case IDC_EXSTYLE: |
| 2486 | if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,(DLGPROC)DlgRadProperty_Item_ExStyle)) return 1; |
| 2487 | DrawRadWindow(i,pWindowInfo); |
2261 | | } |
2262 | | break; |
2263 | | case IDC_ES_NUMBER: |
2264 | | if(HIWORD(wParam)==BN_CLICKED){ |
2265 | | //変更情報 |
2266 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2267 | | |
2268 | | if(SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_GETCHECK,0,0)) |
2269 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_NUMBER; |
2270 | | else |
2271 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_NUMBER; |
2272 | | return 1; |
2273 | | } |
2274 | | break; |
2275 | | case IDC_STYLE_HSCROLL: |
2276 | | if(HIWORD(wParam)==BN_CLICKED){ |
2277 | | //変更情報 |
2278 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2279 | | |
2280 | | if(SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_GETCHECK,0,0)) |
2281 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=WS_HSCROLL; |
2282 | | else |
2283 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~WS_HSCROLL; |
2284 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2285 | | return 1; |
2286 | | } |
2287 | | break; |
2288 | | case IDC_ES_AUTOHSCROLL: |
2289 | | if(HIWORD(wParam)==BN_CLICKED){ |
2290 | | //変更情報 |
2291 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2292 | | |
2293 | | if(SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_GETCHECK,0,0)) |
2294 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_AUTOHSCROLL; |
2295 | | else |
2296 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_AUTOHSCROLL; |
2297 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2298 | | return 1; |
2299 | | } |
2300 | | break; |
2301 | | case IDC_STYLE_VSCROLL: |
2302 | | if(HIWORD(wParam)==BN_CLICKED){ |
2303 | | //変更情報 |
2304 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2305 | | |
2306 | | if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0)) |
2307 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=WS_VSCROLL; |
2308 | | else |
2309 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~WS_VSCROLL; |
2310 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2311 | | return 1; |
2312 | | } |
2313 | | break; |
2314 | | case IDC_ES_AUTOVSCROLL: |
2315 | | if(HIWORD(wParam)==BN_CLICKED){ |
2316 | | //変更情報 |
2317 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2318 | | |
2319 | | if(SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_GETCHECK,0,0)) |
2320 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_AUTOVSCROLL; |
2321 | | else |
2322 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_AUTOVSCROLL; |
2323 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2324 | | return 1; |
2325 | | } |
2326 | | break; |
2327 | | case IDC_ES_PASSWORD: |
2328 | | if(HIWORD(wParam)==BN_CLICKED){ |
2329 | | //変更情報 |
2330 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2331 | | |
2332 | | if(SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_GETCHECK,0,0)) |
2333 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_PASSWORD; |
2334 | | else |
2335 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_PASSWORD; |
2336 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2337 | | return 1; |
2338 | | } |
2339 | | break; |
2340 | | case IDC_ES_NOHIDESEL: |
2341 | | if(HIWORD(wParam)==BN_CLICKED){ |
2342 | | //変更情報 |
2343 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2344 | | |
2345 | | if(SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_GETCHECK,0,0)) |
2346 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_NOHIDESEL; |
2347 | | else |
2348 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_NOHIDESEL; |
2349 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2350 | | return 1; |
2351 | | } |
2352 | | break; |
2353 | | case IDC_ES_OEMCONVERT: |
2354 | | if(HIWORD(wParam)==BN_CLICKED){ |
2355 | | //変更情報 |
2356 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2357 | | |
2358 | | if(SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_GETCHECK,0,0)) |
2359 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_OEMCONVERT; |
2360 | | else |
2361 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_OEMCONVERT; |
2362 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2363 | | return 1; |
2364 | | } |
2365 | | break; |
2366 | | case IDC_ES_WANTRETURN: |
2367 | | if(HIWORD(wParam)==BN_CLICKED){ |
2368 | | //変更情報 |
2369 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2370 | | |
2371 | | if(SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_GETCHECK,0,0)) |
2372 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_WANTRETURN; |
2373 | | else |
2374 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_WANTRETURN; |
2375 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2376 | | return 1; |
2377 | | } |
2378 | | break; |
2379 | | case IDC_ES_UPPERCASE: |
2380 | | if(HIWORD(wParam)==BN_CLICKED){ |
2381 | | //変更情報 |
2382 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2383 | | |
2384 | | if(SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_GETCHECK,0,0)){ |
2385 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_LOWERCASE; |
2386 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_UPPERCASE; |
2387 | | SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_UNCHECKED,0); |
2388 | | } |
2389 | | else |
2390 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_UPPERCASE; |
2391 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2392 | | return 1; |
2393 | | } |
2394 | | break; |
2395 | | case IDC_ES_LOWERCASE: |
2396 | | if(HIWORD(wParam)==BN_CLICKED){ |
2397 | | //変更情報 |
2398 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2399 | | |
2400 | | if(SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_GETCHECK,0,0)){ |
2401 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_UPPERCASE; |
2402 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_LOWERCASE; |
2403 | | SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_UNCHECKED,0); |
2404 | | } |
2405 | | else |
2406 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_LOWERCASE; |
2407 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2408 | | return 1; |
2409 | | } |
2410 | | break; |
2411 | | case IDC_ES_READONLY: |
2412 | | if(HIWORD(wParam)==BN_CLICKED){ |
2413 | | //変更情報 |
2414 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2415 | | |
2416 | | if(SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_GETCHECK,0,0)) |
2417 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_READONLY; |
2418 | | else |
2419 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_READONLY; |
2420 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2421 | | return 1; |
2422 | | } |
2423 | | break; |
2424 | | |
2425 | | case IDC_ES_TEXTPOS: |
2426 | | if(HIWORD(wParam)==CBN_SELCHANGE){ |
2427 | | //変更情報 |
2428 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2429 | | |
2430 | | i3=SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_GETCURSEL,0,0); |
2431 | | //ES_LEFT=0 |
2432 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(ES_CENTER|ES_RIGHT); |
2433 | | if(i3==1) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_CENTER; |
2434 | | else if(i3==2) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_RIGHT; |
2435 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2436 | | return 1; |
2437 | | } |
2438 | | break; |
2439 | | |
2440 | | case IDC_EXSTYLE: |
2441 | | if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,(DLGPROC)DlgRadProperty_Item_ExStyle)) return 1; |
2442 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2443 | | return 1; |
2444 | | } |
2445 | | break; |
| 2489 | } |
| 2490 | break; |
| 2491 | } |
2462 | | bInitial=1; |
2463 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
2464 | | i2=GetWndInfoNum(MdiInfo[i].path); |
2465 | | |
2466 | | SetDlgItemText(hwnd,IDC_IDNAME,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
2467 | | SetDlgItemText(hwnd,IDC_CAPTION,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption); |
2468 | | |
2469 | | |
2470 | | ///////////////////////////// |
2471 | | // スタイル |
2472 | | //////////// |
2473 | | |
2474 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
2475 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
2476 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
2477 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
2478 | | |
2479 | | |
2480 | | ////////////////// |
2481 | | // 水平方向の配置 |
2482 | | ////////////////// |
2483 | | |
2484 | | //"デフォルト" |
2485 | | SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_ADDSTRING,0,(long)STRING_DEFAULT); |
2486 | | //"左端" |
2487 | | SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_ADDSTRING,0,(long)STRING_LEFT); |
2488 | | //"右端" |
2489 | | SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_ADDSTRING,0,(long)STRING_RIGHT); |
2490 | | //"中央" |
2491 | | SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_ADDSTRING,0,(long)STRING_CENTER); |
2492 | | |
2493 | | //ビットを考慮してBS_CENTERを最初に検討する |
2494 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,3,0); |
2495 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,1,0); |
2496 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,2,0); |
2497 | | else SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,0,0); |
2498 | | |
2499 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); |
2500 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); |
2501 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); |
2502 | | |
2503 | | |
2504 | | bInitial=0; |
2505 | | break; |
| 2508 | { |
| 2509 | bInitial=1; |
| 2510 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 2511 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 2512 | |
| 2513 | SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
| 2514 | SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption); |
| 2515 | |
| 2516 | |
| 2517 | ///////////////////////////// |
| 2518 | // スタイル |
| 2519 | //////////// |
| 2520 | |
| 2521 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
| 2522 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
| 2523 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
| 2524 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
| 2525 | |
| 2526 | |
| 2527 | ////////////////// |
| 2528 | // 水平方向の配置 |
| 2529 | ////////////////// |
| 2530 | |
| 2531 | //"デフォルト" |
| 2532 | SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_ADDSTRING,0,(long)STRING_DEFAULT); |
| 2533 | //"左端" |
| 2534 | SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_ADDSTRING,0,(long)STRING_LEFT); |
| 2535 | //"右端" |
| 2536 | SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_ADDSTRING,0,(long)STRING_RIGHT); |
| 2537 | //"中央" |
| 2538 | SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_ADDSTRING,0,(long)STRING_CENTER); |
| 2539 | |
| 2540 | //ビットを考慮してBS_CENTERを最初に検討する |
| 2541 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,3,0); |
| 2542 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,1,0); |
| 2543 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,2,0); |
| 2544 | else SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,0,0); |
| 2545 | |
| 2546 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); |
| 2547 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); |
| 2548 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); |
| 2549 | |
| 2550 | |
| 2551 | bInitial=0; |
| 2552 | break; |
| 2553 | } |
2507 | | |
2508 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
2509 | | if(i==-1) return 1; |
2510 | | i2=GetWndInfoNum(MdiInfo[i].path); |
2511 | | |
2512 | | //共通スタイル |
2513 | | if(bInitial==0){ |
2514 | | if(DefaultItemStyles(hwnd,i,i2,wParam)) return 1; |
2515 | | } |
2516 | | |
2517 | | switch(LOWORD(wParam)){ |
2518 | | case IDC_BS_POSITION: |
2519 | | if(HIWORD(wParam)==CBN_SELCHANGE){ |
2520 | | //変更情報 |
2521 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2522 | | |
2523 | | i3=SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_GETCURSEL,0,0); |
2524 | | //BS_CENTER=BS_LEFT | BS_RIGHT |
2525 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_CENTER); |
2526 | | if(i3==1) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFT; |
2527 | | else if(i3==2) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_RIGHT; |
2528 | | else if(i3==3) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CENTER; |
2529 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
| 2555 | { |
| 2556 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 2557 | if(i==-1) return 1; |
| 2558 | i2=GetWndInfoNum(MdiInfo[i].path); |
| 2559 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 2560 | |
| 2561 | //共通スタイル |
| 2562 | if(bInitial==0){ |
| 2563 | if(DefaultItemStyles(hwnd,i,i2,wParam)) return 1; |
| 2564 | } |
| 2565 | |
| 2566 | switch(LOWORD(wParam)){ |
| 2567 | case IDC_BS_POSITION: |
| 2568 | if(HIWORD(wParam)==CBN_SELCHANGE){ |
| 2569 | //変更情報 |
| 2570 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2571 | |
| 2572 | i3=SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_GETCURSEL,0,0); |
| 2573 | //BS_CENTER=BS_LEFT | BS_RIGHT |
| 2574 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_CENTER); |
| 2575 | if(i3==1) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFT; |
| 2576 | else if(i3==2) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_RIGHT; |
| 2577 | else if(i3==3) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CENTER; |
| 2578 | DrawRadWindow(i,pWindowInfo); |
| 2579 | return 1; |
| 2580 | } |
| 2581 | break; |
| 2582 | |
| 2583 | case IDC_BS_ICON: |
| 2584 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2585 | //変更情報 |
| 2586 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2587 | |
| 2588 | if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)) |
| 2589 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_ICON; |
| 2590 | else |
| 2591 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON; |
| 2592 | DrawRadWindow(i,pWindowInfo); |
| 2593 | return 1; |
| 2594 | } |
| 2595 | break; |
| 2596 | case IDC_BS_BITMAP: |
| 2597 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2598 | //変更情報 |
| 2599 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2600 | |
| 2601 | if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)) |
| 2602 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BITMAP; |
| 2603 | else |
| 2604 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP; |
| 2605 | DrawRadWindow(i,pWindowInfo); |
| 2606 | return 1; |
| 2607 | } |
| 2608 | break; |
| 2609 | case IDC_BS_NOTIFY: |
| 2610 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2611 | //変更情報 |
| 2612 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2613 | |
| 2614 | if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) |
| 2615 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_NOTIFY; |
| 2616 | else |
| 2617 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_NOTIFY; |
| 2618 | return 1; |
| 2619 | } |
| 2620 | break; |
| 2621 | |
| 2622 | case IDC_EXSTYLE: |
| 2623 | if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,(DLGPROC)DlgRadProperty_Item_ExStyle)) return 1; |
| 2624 | DrawRadWindow(i,pWindowInfo); |
2612 | | bInitial=1; |
2613 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
2614 | | i2=GetWndInfoNum(MdiInfo[i].path); |
2615 | | |
2616 | | SetDlgItemText(hwnd,IDC_IDNAME,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
2617 | | |
2618 | | |
2619 | | ///////////////////////////// |
2620 | | // スタイル |
2621 | | //////////// |
2622 | | |
2623 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
2624 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
2625 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
2626 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
2627 | | |
2628 | | ////////// |
2629 | | // タイプ |
2630 | | ////////// |
2631 | | |
2632 | | //"フレーム(黒)" |
2633 | | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_FRAME_BLACK); |
2634 | | //"フレーム(灰色)" |
2635 | | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_FRAME_GRAY); |
2636 | | //"フレーム(白)" |
2637 | | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_FRAME_WHITE); |
2638 | | //"フレーム(縁取り)" |
2639 | | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_FRAME_ETCHED); |
2640 | | //"四角形(黒)" |
2641 | | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_RECT_BLACK); |
2642 | | //"四角形(灰色)" |
2643 | | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_RECT_GRAY); |
2644 | | //"四角形(白)" |
2645 | | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_RECT_WHITE); |
2646 | | //"アイコン" |
2647 | | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_ICON); |
2648 | | //"ビットマップ" |
2649 | | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_BITMAP); |
2650 | | |
2651 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BLACKFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,0,0); |
2652 | | else if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_GRAYFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,1,0); |
2653 | | else if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_WHITEFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,2,0); |
2654 | | else if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000001F)==SS_ETCHEDFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,3,0); |
2655 | | else if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BLACKRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,4,0); |
2656 | | else if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_GRAYRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,5,0); |
2657 | | else if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_WHITERECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,6,0); |
2658 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON|| |
2659 | | (ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){ |
2660 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,7,0); |
2661 | | else if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,8,0); |
2662 | | |
2663 | | //リソース/ファイル スイッチチェックを表示 |
2664 | | ShowWindow(GetDlgItem(hwnd,IDC_FILE),SW_SHOW); |
2665 | | ShowWindow(GetDlgItem(hwnd,IDC_RESOURCE),SW_SHOW); |
2666 | | |
2667 | | //イメージ状態テキストを表示 |
2668 | | ShowWindow(GetDlgItem(hwnd,IDC_IMAGE_SITUATION),SW_SHOW); |
2669 | | |
2670 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_FILE){ |
2671 | | //ファイル指定を表示 |
2672 | | ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW); |
2673 | | ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW); |
2674 | | SetDlgItemText(hwnd,IDC_PATH,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path); |
2675 | | |
2676 | | //イメージ状態テキスト |
2677 | | //"ファイル指定:" |
2678 | | SetDlgItemText(hwnd,IDC_IMAGE_SITUATION,STRING_IMAGEBOXPROP_STYLE_FROMFILE); |
2679 | | |
2680 | | SendDlgItemMessage(hwnd,IDC_FILE,BM_SETCHECK,BST_CHECKED,0); |
| 2662 | { |
| 2663 | bInitial=1; |
| 2664 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 2665 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 2666 | |
| 2667 | SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
| 2668 | |
| 2669 | |
| 2670 | ///////////////////////////// |
| 2671 | // スタイル |
| 2672 | //////////// |
| 2673 | |
| 2674 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
| 2675 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
| 2676 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
| 2677 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
| 2678 | |
| 2679 | ////////// |
| 2680 | // タイプ |
| 2681 | ////////// |
| 2682 | |
| 2683 | //"フレーム(黒)" |
| 2684 | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_FRAME_BLACK); |
| 2685 | //"フレーム(灰色)" |
| 2686 | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_FRAME_GRAY); |
| 2687 | //"フレーム(白)" |
| 2688 | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_FRAME_WHITE); |
| 2689 | //"フレーム(縁取り)" |
| 2690 | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_FRAME_ETCHED); |
| 2691 | //"四角形(黒)" |
| 2692 | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_RECT_BLACK); |
| 2693 | //"四角形(灰色)" |
| 2694 | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_RECT_GRAY); |
| 2695 | //"四角形(白)" |
| 2696 | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_RECT_WHITE); |
| 2697 | //"アイコン" |
| 2698 | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_ICON); |
| 2699 | //"ビットマップ" |
| 2700 | SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_BITMAP); |
| 2701 | |
| 2702 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BLACKFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,0,0); |
| 2703 | else if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_GRAYFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,1,0); |
| 2704 | else if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_WHITEFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,2,0); |
| 2705 | else if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000001F)==SS_ETCHEDFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,3,0); |
| 2706 | else if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BLACKRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,4,0); |
| 2707 | else if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_GRAYRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,5,0); |
| 2708 | else if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_WHITERECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,6,0); |
| 2709 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON|| |
| 2710 | (pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){ |
| 2711 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,7,0); |
| 2712 | else if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,8,0); |
| 2713 | |
| 2714 | //リソース/ファイル スイッチチェックを表示 |
| 2715 | ShowWindow(GetDlgItem(hwnd,IDC_FILE),SW_SHOW); |
| 2716 | ShowWindow(GetDlgItem(hwnd,IDC_RESOURCE),SW_SHOW); |
| 2717 | |
| 2718 | //イメージ状態テキストを表示 |
| 2719 | ShowWindow(GetDlgItem(hwnd,IDC_IMAGE_SITUATION),SW_SHOW); |
| 2720 | |
| 2721 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_FILE){ |
| 2722 | //ファイル指定を表示 |
| 2723 | ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW); |
| 2724 | ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW); |
| 2725 | SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path); |
| 2726 | |
| 2727 | //イメージ状態テキスト |
| 2728 | //"ファイル指定:" |
| 2729 | SetDlgItemText(hwnd,IDC_IMAGE_SITUATION,STRING_IMAGEBOXPROP_STYLE_FROMFILE); |
| 2730 | |
| 2731 | SendDlgItemMessage(hwnd,IDC_FILE,BM_SETCHECK,BST_CHECKED,0); |
| 2732 | } |
| 2733 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_RES){ |
| 2734 | //リソース指定を表示 |
| 2735 | ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_SHOW); |
| 2736 | |
| 2737 | //イメージ状態テキスト |
| 2738 | //"リソース指定:" |
| 2739 | SetDlgItemText(hwnd,IDC_IMAGE_SITUATION,STRING_IMAGEBOXPROP_STYLE_FROMRESOURCE); |
| 2740 | |
| 2741 | SendDlgItemMessage(hwnd,IDC_RESOURCE,BM_SETCHECK,BST_CHECKED,0); |
| 2742 | |
| 2743 | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0); |
| 2744 | |
| 2745 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON){ |
| 2746 | //アイコンリソースをコンボボックスに挿入 |
| 2747 | for(i3=0;i3<ProjectInfo.res.NumberOfIconRes;i3++) |
| 2748 | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pIconResInfo[i3].IdName); |
| 2749 | } |
| 2750 | else if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){ |
| 2751 | //ビットマップリソースをコンボボックスに挿入 |
| 2752 | for(i3=0;i3<ProjectInfo.res.NumberOfBitmapRes;i3++) |
| 2753 | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pBitmapResInfo[i3].IdName); |
| 2754 | } |
| 2755 | |
| 2756 | //リストから選択 |
| 2757 | i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_FINDSTRING,0,(long)pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path); |
| 2758 | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0); |
| 2759 | } |
2682 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_RES){ |
2683 | | //リソース指定を表示 |
2684 | | ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_SHOW); |
2685 | | |
2686 | | //イメージ状態テキスト |
2687 | | //"リソース指定:" |
2688 | | SetDlgItemText(hwnd,IDC_IMAGE_SITUATION,STRING_IMAGEBOXPROP_STYLE_FROMRESOURCE); |
2689 | | |
2690 | | SendDlgItemMessage(hwnd,IDC_RESOURCE,BM_SETCHECK,BST_CHECKED,0); |
2691 | | |
2692 | | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0); |
2693 | | |
2694 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON){ |
2695 | | //アイコンリソースをコンボボックスに挿入 |
2696 | | for(i3=0;i3<ProjectInfo.res.NumberOfIconRes;i3++) |
2697 | | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pIconResInfo[i3].IdName); |
2698 | | } |
2699 | | else if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){ |
2700 | | //ビットマップリソースをコンボボックスに挿入 |
2701 | | for(i3=0;i3<ProjectInfo.res.NumberOfBitmapRes;i3++) |
2702 | | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pBitmapResInfo[i3].IdName); |
2703 | | } |
2704 | | |
2705 | | //リストから選択 |
2706 | | i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_FINDSTRING,0,(long)ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path); |
2707 | | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0); |
| 2761 | |
| 2762 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); |
| 2763 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_CENTERIMAGE) SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_SETCHECK,BST_CHECKED,0); |
| 2764 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_RIGHTJUST) SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_SETCHECK,BST_CHECKED,0); |
| 2765 | |
| 2766 | RadProperty_ImageBox_StylingOrder(hwnd,&pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2767 | |
| 2768 | bInitial=0; |
| 2769 | break; |
| 2770 | } |
| 2771 | case WM_COMMAND: |
| 2772 | { |
| 2773 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 2774 | if(i==-1) return 1; |
| 2775 | i2=GetWndInfoNum(MdiInfo[i].path); |
| 2776 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 2777 | |
| 2778 | //共通スタイル |
| 2779 | if(bInitial==0){ |
| 2780 | if(DefaultItemStyles(hwnd,i,i2,wParam)) return 1; |
2709 | | } |
2710 | | |
2711 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); |
2712 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_CENTERIMAGE) SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_SETCHECK,BST_CHECKED,0); |
2713 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_RIGHTJUST) SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_SETCHECK,BST_CHECKED,0); |
2714 | | |
2715 | | RadProperty_ImageBox_StylingOrder(hwnd,&ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2716 | | |
2717 | | bInitial=0; |
2718 | | break; |
2719 | | case WM_COMMAND: |
2720 | | |
2721 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
2722 | | if(i==-1) return 1; |
2723 | | i2=GetWndInfoNum(MdiInfo[i].path); |
2724 | | |
2725 | | //共通スタイル |
2726 | | if(bInitial==0){ |
2727 | | if(DefaultItemStyles(hwnd,i,i2,wParam)) return 1; |
2728 | | } |
2729 | | |
2730 | | switch(LOWORD(wParam)){ |
2731 | | case IDC_IMAGE_TYPE: |
2732 | | if(HIWORD(wParam)==CBN_SELCHANGE){ |
2733 | | //変更情報 |
2734 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2735 | | |
2736 | | i3=SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_GETCURSEL,0,0); |
2737 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(0x0000001F); |
2738 | | if(i3==0) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_BLACKFRAME; |
2739 | | else if(i3==1) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_GRAYFRAME; |
2740 | | else if(i3==2) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_WHITEFRAME; |
2741 | | else if(i3==3) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_ETCHEDFRAME; |
2742 | | else if(i3==4) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_BLACKRECT; |
2743 | | else if(i3==5) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_GRAYRECT; |
2744 | | else if(i3==6) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_WHITERECT; |
2745 | | else if(i3==7) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_ICON; |
2746 | | else if(i3==8) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_BITMAP; |
2747 | | |
2748 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON|| |
2749 | | (ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){ |
2750 | | //リソース/ファイル スイッチチェックを表示 |
2751 | | ShowWindow(GetDlgItem(hwnd,IDC_FILE),SW_SHOW); |
2752 | | ShowWindow(GetDlgItem(hwnd,IDC_RESOURCE),SW_SHOW); |
2753 | | |
2754 | | //イメージ状態テキストを表示 |
2755 | | ShowWindow(GetDlgItem(hwnd,IDC_IMAGE_SITUATION),SW_SHOW); |
2756 | | |
2757 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_FILE){ |
2758 | | //ファイル指定を表示 |
2759 | | ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW); |
2760 | | ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW); |
2761 | | SetDlgItemText(hwnd,IDC_PATH,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path); |
2762 | | |
2763 | | //イメージ状態テキスト |
2764 | | //"ファイル指定:" |
2765 | | SetDlgItemText(hwnd,IDC_IMAGE_SITUATION,STRING_IMAGEBOXPROP_STYLE_FROMFILE); |
2766 | | |
2767 | | SendDlgItemMessage(hwnd,IDC_FILE,BM_SETCHECK,BST_CHECKED,0); |
2768 | | } |
2769 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_RES){ |
2770 | | //リソース指定を表示 |
2771 | | ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_SHOW); |
2772 | | |
2773 | | //イメージ状態テキスト |
2774 | | //"リソース指定:" |
2775 | | SetDlgItemText(hwnd,IDC_IMAGE_SITUATION,STRING_IMAGEBOXPROP_STYLE_FROMRESOURCE); |
2776 | | |
2777 | | SendDlgItemMessage(hwnd,IDC_RESOURCE,BM_SETCHECK,BST_CHECKED,0); |
2778 | | |
2779 | | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0); |
2780 | | |
2781 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON){ |
2782 | | //アイコンリソースをコンボボックスに挿入 |
2783 | | for(i3=0;i3<ProjectInfo.res.NumberOfIconRes;i3++){ |
2784 | | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pIconResInfo[i3].IdName); |
2785 | | |
2786 | | if(lstrcmp(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path,ProjectInfo.res.pIconResInfo[i3].IdName)==0) |
2787 | | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0); |
| 2782 | |
| 2783 | switch(LOWORD(wParam)){ |
| 2784 | case IDC_IMAGE_TYPE: |
| 2785 | if(HIWORD(wParam)==CBN_SELCHANGE){ |
| 2786 | //変更情報 |
| 2787 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2788 | |
| 2789 | i3=SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_GETCURSEL,0,0); |
| 2790 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(0x0000001F); |
| 2791 | if(i3==0) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_BLACKFRAME; |
| 2792 | else if(i3==1) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_GRAYFRAME; |
| 2793 | else if(i3==2) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_WHITEFRAME; |
| 2794 | else if(i3==3) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_ETCHEDFRAME; |
| 2795 | else if(i3==4) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_BLACKRECT; |
| 2796 | else if(i3==5) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_GRAYRECT; |
| 2797 | else if(i3==6) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_WHITERECT; |
| 2798 | else if(i3==7) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_ICON; |
| 2799 | else if(i3==8) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_BITMAP; |
| 2800 | |
| 2801 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON|| |
| 2802 | (pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){ |
| 2803 | //リソース/ファイル スイッチチェックを表示 |
| 2804 | ShowWindow(GetDlgItem(hwnd,IDC_FILE),SW_SHOW); |
| 2805 | ShowWindow(GetDlgItem(hwnd,IDC_RESOURCE),SW_SHOW); |
| 2806 | |
| 2807 | //イメージ状態テキストを表示 |
| 2808 | ShowWindow(GetDlgItem(hwnd,IDC_IMAGE_SITUATION),SW_SHOW); |
| 2809 | |
| 2810 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_FILE){ |
| 2811 | //ファイル指定を表示 |
| 2812 | ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW); |
| 2813 | ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW); |
| 2814 | SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path); |
| 2815 | |
| 2816 | //イメージ状態テキスト |
| 2817 | //"ファイル指定:" |
| 2818 | SetDlgItemText(hwnd,IDC_IMAGE_SITUATION,STRING_IMAGEBOXPROP_STYLE_FROMFILE); |
| 2819 | |
| 2820 | SendDlgItemMessage(hwnd,IDC_FILE,BM_SETCHECK,BST_CHECKED,0); |
| 2821 | } |
| 2822 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_RES){ |
| 2823 | //リソース指定を表示 |
| 2824 | ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_SHOW); |
| 2825 | |
| 2826 | //イメージ状態テキスト |
| 2827 | //"リソース指定:" |
| 2828 | SetDlgItemText(hwnd,IDC_IMAGE_SITUATION,STRING_IMAGEBOXPROP_STYLE_FROMRESOURCE); |
| 2829 | |
| 2830 | SendDlgItemMessage(hwnd,IDC_RESOURCE,BM_SETCHECK,BST_CHECKED,0); |
| 2831 | |
| 2832 | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0); |
| 2833 | |
| 2834 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON){ |
| 2835 | //アイコンリソースをコンボボックスに挿入 |
| 2836 | for(i3=0;i3<ProjectInfo.res.NumberOfIconRes;i3++){ |
| 2837 | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pIconResInfo[i3].IdName); |
| 2838 | |
| 2839 | if(lstrcmp(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path,ProjectInfo.res.pIconResInfo[i3].IdName)==0) |
| 2840 | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0); |
| 2841 | } |
2800 | | } |
2801 | | else{ |
2802 | | //リソース/ファイル スイッチチェックを非表示 |
2803 | | ShowWindow(GetDlgItem(hwnd,IDC_FILE),SW_HIDE); |
2804 | | ShowWindow(GetDlgItem(hwnd,IDC_RESOURCE),SW_HIDE); |
2805 | | |
2806 | | //イメージ状態テキストを非表示 |
2807 | | ShowWindow(GetDlgItem(hwnd,IDC_IMAGE_SITUATION),SW_HIDE); |
2808 | | |
2809 | | //ファイル指定を非表示 |
2810 | | ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_HIDE); |
2811 | | ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_HIDE); |
2812 | | |
2813 | | //リソース指定を非表示 |
2814 | | ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_HIDE); |
2815 | | } |
2816 | | |
2817 | | RadProperty_ImageBox_StylingOrder(hwnd,&ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2818 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
| 2854 | else{ |
| 2855 | //リソース/ファイル スイッチチェックを非表示 |
| 2856 | ShowWindow(GetDlgItem(hwnd,IDC_FILE),SW_HIDE); |
| 2857 | ShowWindow(GetDlgItem(hwnd,IDC_RESOURCE),SW_HIDE); |
| 2858 | |
| 2859 | //イメージ状態テキストを非表示 |
| 2860 | ShowWindow(GetDlgItem(hwnd,IDC_IMAGE_SITUATION),SW_HIDE); |
| 2861 | |
| 2862 | //ファイル指定を非表示 |
| 2863 | ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_HIDE); |
| 2864 | ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_HIDE); |
| 2865 | |
| 2866 | //リソース指定を非表示 |
| 2867 | ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_HIDE); |
| 2868 | } |
| 2869 | |
| 2870 | RadProperty_ImageBox_StylingOrder(hwnd,&pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2871 | DrawRadWindow(i,pWindowInfo); |
| 2872 | return 1; |
| 2873 | } |
| 2874 | break; |
| 2875 | |
| 2876 | case IDC_FILE: |
| 2877 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_FILE){ |
| 2878 | //変更無し |
| 2879 | break; |
| 2880 | } |
| 2881 | |
| 2882 | //変更情報 |
| 2883 | Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo); |
| 2884 | |
| 2885 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type=IMGTYPE_FILE; |
| 2886 | |
| 2887 | //ファイル指定を表示 |
| 2888 | ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW); |
| 2889 | ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW); |
| 2890 | SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path); |
| 2891 | |
| 2892 | //リソース指定を非表示 |
| 2893 | ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_HIDE); |
| 2894 | |
| 2895 | //イメージ状態テキスト |
| 2896 | //"ファイル指定:" |
| 2897 | SetDlgItemText(hwnd,IDC_IMAGE_SITUATION,STRING_IMAGEBOXPROP_STYLE_FROMFILE); |
| 2898 | |
| 2899 | SendDlgItemMessage(hwnd,IDC_FILE,BM_SETCHECK,BST_CHECKED,0); |
| 2900 | break; |
| 2901 | |
| 2902 | case IDC_RESOURCE: |
| 2903 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_RES){ |
| 2904 | //変更無し |
| 2905 | break; |
| 2906 | } |
| 2907 | |
| 2908 | //変更情報 |
| 2909 | Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo); |
| 2910 | |
| 2911 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type=IMGTYPE_RES; |
| 2912 | |
| 2913 | //ファイル指定を非表示 |
| 2914 | ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_HIDE); |
| 2915 | ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_HIDE); |
| 2916 | |
| 2917 | //リソース指定を表示 |
| 2918 | ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_SHOW); |
| 2919 | |
| 2920 | //イメージ状態テキスト |
| 2921 | //"リソース指定:" |
| 2922 | SetDlgItemText(hwnd,IDC_IMAGE_SITUATION,STRING_IMAGEBOXPROP_STYLE_FROMRESOURCE); |
| 2923 | |
| 2924 | SendDlgItemMessage(hwnd,IDC_RESOURCE,BM_SETCHECK,BST_CHECKED,0); |
| 2925 | |
| 2926 | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0); |
| 2927 | |
| 2928 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON){ |
| 2929 | //アイコンリソースをコンボボックスに挿入 |
| 2930 | for(i3=0;i3<ProjectInfo.res.NumberOfIconRes;i3++) |
| 2931 | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pIconResInfo[i3].IdName); |
| 2932 | } |
| 2933 | else if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){ |
| 2934 | //ビットマップリソースをコンボボックスに挿入 |
| 2935 | for(i3=0;i3<ProjectInfo.res.NumberOfBitmapRes;i3++) |
| 2936 | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pBitmapResInfo[i3].IdName); |
| 2937 | } |
| 2938 | break; |
| 2939 | |
| 2940 | case IDC_RESCOMBO: |
| 2941 | if(HIWORD(wParam)==CBN_SELCHANGE){ |
| 2942 | //変更情報 |
| 2943 | Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo); |
| 2944 | |
| 2945 | i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_GETCURSEL,0,0); |
| 2946 | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_GETLBTEXT,i3,(long)temporary); |
| 2947 | |
| 2948 | HeapDefaultFree(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path); |
| 2949 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); |
| 2950 | lstrcpy(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path,temporary); |
| 2951 | |
| 2952 | DrawRadWindow(i,pWindowInfo); |
| 2953 | } |
| 2954 | break; |
| 2955 | |
| 2956 | case IDC_CHANGEPATH: |
| 2957 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2958 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_FILE){ |
| 2959 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x000F)==SS_ICON){ |
| 2960 | extern LPSTR IconFileFilter; |
| 2961 | //"アイコン ファイルを指定して下さい" |
| 2962 | if(!GetFilePathDialog(hwnd,temporary,IconFileFilter,STRING_IMAGEBOXPROP_GETPATH_ICON,1)) return 1; |
| 2963 | } |
| 2964 | else if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x000F)==SS_BITMAP){ |
| 2965 | extern LPSTR BitmapFileFilter; |
| 2966 | //"ビットマップ ファイルを指定して下さい" |
| 2967 | if(!GetFilePathDialog(hwnd,temporary,BitmapFileFilter,STRING_IMAGEBOXPROP_GETPATH_BITMAP,1)) return 1; |
| 2968 | } |
| 2969 | |
| 2970 | //変更情報 |
| 2971 | Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo); |
| 2972 | |
| 2973 | GetRelationalPath(temporary,ProjectInfo.dir); |
| 2974 | HeapDefaultFree(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path); |
| 2975 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); |
| 2976 | lstrcpy(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path,temporary); |
| 2977 | |
| 2978 | SetDlgItemText(hwnd,IDC_PATH,temporary); |
| 2979 | DrawRadWindow(i,pWindowInfo); |
| 2980 | } |
| 2981 | return 1; |
| 2982 | } |
| 2983 | break; |
| 2984 | |
| 2985 | case IDC_SS_NOTIFY: |
| 2986 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2987 | //変更情報 |
| 2988 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 2989 | |
| 2990 | if(SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_GETCHECK,0,0)) |
| 2991 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_NOTIFY; |
| 2992 | else |
| 2993 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~SS_NOTIFY; |
| 2994 | return 1; |
| 2995 | } |
| 2996 | break; |
| 2997 | case IDC_SS_CENTERIMAGE: |
| 2998 | if(HIWORD(wParam)==BN_CLICKED){ |
| 2999 | //変更情報 |
| 3000 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 3001 | |
| 3002 | if(SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_GETCHECK,0,0)) |
| 3003 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_CENTERIMAGE; |
| 3004 | else |
| 3005 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~SS_CENTERIMAGE; |
| 3006 | return 1; |
| 3007 | } |
| 3008 | break; |
| 3009 | case IDC_SS_RIGHTJUST: |
| 3010 | if(HIWORD(wParam)==BN_CLICKED){ |
| 3011 | //変更情報 |
| 3012 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 3013 | |
| 3014 | if(SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_GETCHECK,0,0)) |
| 3015 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_RIGHTJUST; |
| 3016 | else |
| 3017 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~SS_RIGHTJUST; |
| 3018 | return 1; |
| 3019 | } |
| 3020 | break; |
| 3021 | |
| 3022 | case IDC_EXSTYLE: |
| 3023 | if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,(DLGPROC)DlgRadProperty_Item_ExStyle)) return 1; |
| 3024 | DrawRadWindow(i,pWindowInfo); |
2820 | | } |
2821 | | break; |
2822 | | |
2823 | | case IDC_FILE: |
2824 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_FILE){ |
2825 | | //変更無し |
2826 | | break; |
2827 | | } |
2828 | | |
2829 | | //変更情報 |
2830 | | Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo); |
2831 | | |
2832 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type=IMGTYPE_FILE; |
2833 | | |
2834 | | //ファイル指定を表示 |
2835 | | ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW); |
2836 | | ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW); |
2837 | | SetDlgItemText(hwnd,IDC_PATH,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path); |
2838 | | |
2839 | | //リソース指定を非表示 |
2840 | | ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_HIDE); |
2841 | | |
2842 | | //イメージ状態テキスト |
2843 | | //"ファイル指定:" |
2844 | | SetDlgItemText(hwnd,IDC_IMAGE_SITUATION,STRING_IMAGEBOXPROP_STYLE_FROMFILE); |
2845 | | |
2846 | | SendDlgItemMessage(hwnd,IDC_FILE,BM_SETCHECK,BST_CHECKED,0); |
2847 | | break; |
2848 | | |
2849 | | case IDC_RESOURCE: |
2850 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_RES){ |
2851 | | //変更無し |
2852 | | break; |
2853 | | } |
2854 | | |
2855 | | //変更情報 |
2856 | | Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo); |
2857 | | |
2858 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type=IMGTYPE_RES; |
2859 | | |
2860 | | //ファイル指定を非表示 |
2861 | | ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_HIDE); |
2862 | | ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_HIDE); |
2863 | | |
2864 | | //リソース指定を表示 |
2865 | | ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_SHOW); |
2866 | | |
2867 | | //イメージ状態テキスト |
2868 | | //"リソース指定:" |
2869 | | SetDlgItemText(hwnd,IDC_IMAGE_SITUATION,STRING_IMAGEBOXPROP_STYLE_FROMRESOURCE); |
2870 | | |
2871 | | SendDlgItemMessage(hwnd,IDC_RESOURCE,BM_SETCHECK,BST_CHECKED,0); |
2872 | | |
2873 | | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0); |
2874 | | |
2875 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON){ |
2876 | | //アイコンリソースをコンボボックスに挿入 |
2877 | | for(i3=0;i3<ProjectInfo.res.NumberOfIconRes;i3++) |
2878 | | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pIconResInfo[i3].IdName); |
2879 | | } |
2880 | | else if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){ |
2881 | | //ビットマップリソースをコンボボックスに挿入 |
2882 | | for(i3=0;i3<ProjectInfo.res.NumberOfBitmapRes;i3++) |
2883 | | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pBitmapResInfo[i3].IdName); |
2884 | | } |
2885 | | break; |
2886 | | |
2887 | | case IDC_RESCOMBO: |
2888 | | if(HIWORD(wParam)==CBN_SELCHANGE){ |
2889 | | //変更情報 |
2890 | | Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo); |
2891 | | |
2892 | | i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_GETCURSEL,0,0); |
2893 | | SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_GETLBTEXT,i3,(long)temporary); |
2894 | | |
2895 | | HeapDefaultFree(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path); |
2896 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); |
2897 | | lstrcpy(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path,temporary); |
2898 | | |
2899 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2900 | | } |
2901 | | break; |
2902 | | |
2903 | | case IDC_CHANGEPATH: |
2904 | | if(HIWORD(wParam)==BN_CLICKED){ |
2905 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_FILE){ |
2906 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x000F)==SS_ICON){ |
2907 | | extern LPSTR IconFileFilter; |
2908 | | //"アイコン ファイルを指定して下さい" |
2909 | | if(!GetFilePathDialog(hwnd,temporary,IconFileFilter,STRING_IMAGEBOXPROP_GETPATH_ICON,1)) return 1; |
2910 | | } |
2911 | | else if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x000F)==SS_BITMAP){ |
2912 | | extern LPSTR BitmapFileFilter; |
2913 | | //"ビットマップ ファイルを指定して下さい" |
2914 | | if(!GetFilePathDialog(hwnd,temporary,BitmapFileFilter,STRING_IMAGEBOXPROP_GETPATH_BITMAP,1)) return 1; |
2915 | | } |
2916 | | |
2917 | | //変更情報 |
2918 | | Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo); |
2919 | | |
2920 | | GetRelationalPath(temporary,ProjectInfo.dir); |
2921 | | HeapDefaultFree(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path); |
2922 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); |
2923 | | lstrcpy(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path,temporary); |
2924 | | |
2925 | | SetDlgItemText(hwnd,IDC_PATH,temporary); |
2926 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2927 | | } |
2928 | | return 1; |
2929 | | } |
2930 | | break; |
2931 | | |
2932 | | case IDC_SS_NOTIFY: |
2933 | | if(HIWORD(wParam)==BN_CLICKED){ |
2934 | | //変更情報 |
2935 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2936 | | |
2937 | | if(SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_GETCHECK,0,0)) |
2938 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_NOTIFY; |
2939 | | else |
2940 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~SS_NOTIFY; |
2941 | | return 1; |
2942 | | } |
2943 | | break; |
2944 | | case IDC_SS_CENTERIMAGE: |
2945 | | if(HIWORD(wParam)==BN_CLICKED){ |
2946 | | //変更情報 |
2947 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2948 | | |
2949 | | if(SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_GETCHECK,0,0)) |
2950 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_CENTERIMAGE; |
2951 | | else |
2952 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~SS_CENTERIMAGE; |
2953 | | return 1; |
2954 | | } |
2955 | | break; |
2956 | | case IDC_SS_RIGHTJUST: |
2957 | | if(HIWORD(wParam)==BN_CLICKED){ |
2958 | | //変更情報 |
2959 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
2960 | | |
2961 | | if(SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_GETCHECK,0,0)) |
2962 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_RIGHTJUST; |
2963 | | else |
2964 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~SS_RIGHTJUST; |
2965 | | return 1; |
2966 | | } |
2967 | | break; |
2968 | | |
2969 | | case IDC_EXSTYLE: |
2970 | | if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,(DLGPROC)DlgRadProperty_Item_ExStyle)) return 1; |
2971 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
2972 | | return 1; |
2973 | | } |
2974 | | break; |
| 3026 | } |
| 3027 | break; |
| 3028 | } |
2990 | | bInitial=1; |
2991 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
2992 | | i2=GetWndInfoNum(MdiInfo[i].path); |
2993 | | |
2994 | | SetDlgItemText(hwnd,IDC_IDNAME,ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
2995 | | |
2996 | | |
2997 | | ///////////////////////// |
2998 | | // スタイル |
2999 | | //////////// |
3000 | | |
3001 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
3002 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
3003 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
3004 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
3005 | | |
3006 | | //////// |
3007 | | // 表示 |
3008 | | //////// |
3009 | | |
3010 | | //"アイコン" |
3011 | | SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_ADDSTRING,0,(long)STRING_LISTVIEWPROP_STYLE_ICON); |
3012 | | //"小さいアイコン" |
3013 | | SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_ADDSTRING,0,(long)STRING_LISTVIEWPROP_STYLE_SMALLICON); |
3014 | | //"リスト" |
3015 | | SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_ADDSTRING,0,(long)STRING_LISTVIEWPROP_STYLE_LIST); |
3016 | | //"レポート" |
3017 | | SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_ADDSTRING,0,(long)STRING_LISTVIEWPROP_STYLE_REPORT); |
3018 | | |
3019 | | //ビットを考慮してLVS_LISTを最初に比較する |
3020 | | if((ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_LIST)==LVS_LIST) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,2,0); |
3021 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SMALLICON) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,1,0); |
3022 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_REPORT) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,3,0); |
3023 | | else SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,0,0); |
3024 | | |
3025 | | |
3026 | | //////// |
3027 | | // 配置 |
3028 | | //////// |
3029 | | |
3030 | | //"上端" |
3031 | | SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_ADDSTRING,0,(long)STRING_TOP); |
3032 | | //"左端" |
3033 | | SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_ADDSTRING,0,(long)STRING_LEFT); |
3034 | | |
3035 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,1,0); |
3036 | | else SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,0,0); |
3037 | | |
3038 | | |
3039 | | ////////// |
3040 | | // ソート |
3041 | | ////////// |
3042 | | |
3043 | | //"なし" |
3044 | | SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_ADDSTRING,0,(long)STRING_NONE_); |
3045 | | //"昇順" |
3046 | | SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_ADDSTRING,0,(long)STRING_SORT_ASCENDING); |
3047 | | //"降順" |
3048 | | SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_ADDSTRING,0,(long)STRING_SORT_DESCENDING); |
3049 | | |
3050 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SORTASCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,1,0); |
3051 | | else if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SORTDESCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,2,0); |
3052 | | else SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,0,0); |
3053 | | |
3054 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SINGLESEL) SendDlgItemMessage(hwnd,IDC_LVS_SINGLESEL,BM_SETCHECK,BST_CHECKED,0); |
3055 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_AUTOARRANGE) SendDlgItemMessage(hwnd,IDC_LVS_AUTOARRANGE,BM_SETCHECK,BST_CHECKED,0); |
3056 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_NOLABELWRAP) SendDlgItemMessage(hwnd,IDC_LVS_NOLABELWRAP,BM_SETCHECK,BST_CHECKED,0); |
3057 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_LVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0); |
3058 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_LVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0); |
3059 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_NOCOLUMNHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOCOLUMNHEADER,BM_SETCHECK,BST_CHECKED,0); |
3060 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_NOSORTHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOSORTHEADER,BM_SETCHECK,BST_CHECKED,0); |
3061 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_LVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0); |
3062 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LVS_OWNERDRAWFIXED,BM_SETCHECK,BST_CHECKED,0); |
3063 | | if(ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SHAREIMAGELISTS) SendDlgItemMessage(hwnd,IDC_LVS_SHAREIMAGELISTS,BM_SETCHECK,BST_CHECKED,0); |
3064 | | |
3065 | | |
3066 | | bInitial=0; |
3067 | | break; |
| 3044 | { |
| 3045 | bInitial=1; |
| 3046 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 3047 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 3048 | |
| 3049 | SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); |
| 3050 | |
| 3051 | |
| 3052 | ///////////////////////// |
| 3053 | // スタイル |
| 3054 | //////////// |
| 3055 | |
| 3056 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); |
| 3057 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); |
| 3058 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); |
| 3059 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); |
| 3060 | |
| 3061 | //////// |
| 3062 | // 表示 |
| 3063 | //////// |
| 3064 | |
| 3065 | //"アイコン" |
| 3066 | SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_ADDSTRING,0,(long)STRING_LISTVIEWPROP_STYLE_ICON); |
| 3067 | //"小さいアイコン" |
| 3068 | SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_ADDSTRING,0,(long)STRING_LISTVIEWPROP_STYLE_SMALLICON); |
| 3069 | //"リスト" |
| 3070 | SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_ADDSTRING,0,(long)STRING_LISTVIEWPROP_STYLE_LIST); |
| 3071 | //"レポート" |
| 3072 | SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_ADDSTRING,0,(long)STRING_LISTVIEWPROP_STYLE_REPORT); |
| 3073 | |
| 3074 | //ビットを考慮してLVS_LISTを最初に比較する |
| 3075 | if((pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_LIST)==LVS_LIST) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,2,0); |
| 3076 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SMALLICON) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,1,0); |
| 3077 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_REPORT) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,3,0); |
| 3078 | else SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,0,0); |
| 3079 | |
| 3080 | |
| 3081 | //////// |
| 3082 | // 配置 |
| 3083 | //////// |
| 3084 | |
| 3085 | //"上端" |
| 3086 | SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_ADDSTRING,0,(long)STRING_TOP); |
| 3087 | //"左端" |
| 3088 | SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_ADDSTRING,0,(long)STRING_LEFT); |
| 3089 | |
| 3090 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,1,0); |
| 3091 | else SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,0,0); |
| 3092 | |
| 3093 | |
| 3094 | ////////// |
| 3095 | // ソート |
| 3096 | ////////// |
| 3097 | |
| 3098 | //"なし" |
| 3099 | SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_ADDSTRING,0,(long)STRING_NONE_); |
| 3100 | //"昇順" |
| 3101 | SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_ADDSTRING,0,(long)STRING_SORT_ASCENDING); |
| 3102 | //"降順" |
| 3103 | SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_ADDSTRING,0,(long)STRING_SORT_DESCENDING); |
| 3104 | |
| 3105 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SORTASCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,1,0); |
| 3106 | else if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SORTDESCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,2,0); |
| 3107 | else SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,0,0); |
| 3108 | |
| 3109 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SINGLESEL) SendDlgItemMessage(hwnd,IDC_LVS_SINGLESEL,BM_SETCHECK,BST_CHECKED,0); |
| 3110 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_AUTOARRANGE) SendDlgItemMessage(hwnd,IDC_LVS_AUTOARRANGE,BM_SETCHECK,BST_CHECKED,0); |
| 3111 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_NOLABELWRAP) SendDlgItemMessage(hwnd,IDC_LVS_NOLABELWRAP,BM_SETCHECK,BST_CHECKED,0); |
| 3112 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_LVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0); |
| 3113 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_LVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0); |
| 3114 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_NOCOLUMNHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOCOLUMNHEADER,BM_SETCHECK,BST_CHECKED,0); |
| 3115 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_NOSORTHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOSORTHEADER,BM_SETCHECK,BST_CHECKED,0); |
| 3116 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_LVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0); |
| 3117 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LVS_OWNERDRAWFIXED,BM_SETCHECK,BST_CHECKED,0); |
| 3118 | if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SHAREIMAGELISTS) SendDlgItemMessage(hwnd,IDC_LVS_SHAREIMAGELISTS,BM_SETCHECK,BST_CHECKED,0); |
| 3119 | |
| 3120 | |
| 3121 | bInitial=0; |
| 3122 | break; |
| 3123 | } |
3069 | | |
3070 | | i=GetWndNum(GetParent(GetParent(hwnd))); |
3071 | | if(i==-1) return 1; |
3072 | | i2=GetWndInfoNum(MdiInfo[i].path); |
3073 | | |
3074 | | //共通スタイル |
3075 | | if(bInitial==0){ |
3076 | | if(DefaultItemStyles(hwnd,i,i2,wParam)) return 1; |
3077 | | } |
3078 | | |
3079 | | switch(LOWORD(wParam)){ |
3080 | | case IDC_LVS_VIEW: |
3081 | | if(HIWORD(wParam)==CBN_SELCHANGE){ |
3082 | | //変更情報 |
3083 | | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
3084 | | |
3085 | | i3=SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_GETCURSEL,0,0); |
3086 | | ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(LVS_SMALLICON|LVS_LIST|LVS_REPORT); |
3087 | | if(i3==1) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_SMALLICON; |
3088 | | else if(i3==2) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_LIST; |
3089 | | else if(i3==3) ProjectInfo.pWindowInfo[i2].pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_REPORT; |
3090 | | DrawRadWindow(i,&ProjectInfo.pWindowInfo[i2]); |
| 3125 | { |
| 3126 | i=GetWndNum(GetParent(GetParent(hwnd))); |
| 3127 | if(i==-1) return 1; |
| 3128 | i2=GetWndInfoNum(MdiInfo[i].path); |
| 3129 | WINDOW_INFO *pWindowInfo = GetWndInfo(MdiInfo[i].path); |
| 3130 | |
| 3131 | //共通スタイル |
| 3132 | if(bInitial==0){ |
| 3133 | if(DefaultItemStyles(hwnd,i,i2,wParam)) return 1; |
| 3134 | } |
| 3135 | |
| 3136 | switch(LOWORD(wParam)){ |
| 3137 | case IDC_LVS_VIEW: |
| 3138 | if(HIWORD(wParam)==CBN_SELCHANGE){ |
| 3139 | //変更情報 |
| 3140 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 3141 | |
| 3142 | i3=SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_GETCURSEL,0,0); |
| 3143 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(LVS_SMALLICON|LVS_LIST|LVS_REPORT); |
| 3144 | if(i3==1) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_SMALLICON; |
| 3145 | else if(i3==2) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_LIST; |
| 3146 | else if(i3==3) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_REPORT; |
| 3147 | DrawRadWindow(i,pWindowInfo); |
| 3148 | return 1; |
| 3149 | } |
| 3150 | break; |
| 3151 | case IDC_LVS_POSITION: |
| 3152 | if(HIWORD(wParam)==CBN_SELCHANGE){ |
| 3153 | //変更情報 |
| 3154 | Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style); |
| 3155 | |
| 3156 | i3=SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_GETCURSEL,0,0); |
| 3157 | pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(LVS_ALIGNLEFT); |
| 3158 | if(i3==1) pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_ALIGNLEFT; |
| 3159 | return 1; |
| 3160 | } |
| 3161 | break; |