|
-
May 7th, 2012, 05:09 PM
#1
Why are my windows transparent?
Hi All,
I have several possible related problems, all of them having to do with controls dissapearing and or drawing improperly.
1)
First, I have a modeless dialog box that draws everything underneath it. It still has a frame and everything
here is the .rc file:
Code:
IDD_GAL_SAVE DIALOGEX 0, 0, 316, 333
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU |WS_VISIBLE
CAPTION "Gallery Information"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "OK",IDOK,106,312,50,14
PUSHBUTTON "Cancel",IDCANCEL,160,312,50,14
CONTROL "",IDC_SGAL_PREV,"Static",SS_BITMAP | SS_CENTERIMAGE| SS_REALSIZEIMAGE ,181,20,100,100
PUSHBUTTON "Take Screenshot...",IDC_SGAL_SHOT,216,126,85,14
EDITTEXT IDC_SGAL_DESCR,16,23,141,272,ES_AUTOHSCROLL
COMBOBOX IDC_SGAL_APPSEL,181,164,117,150,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
GROUPBOX "Description",IDC_SGAL_INFO,7,7,159,297
GROUPBOX "Preview Image",IDC_SGAL_PICS,170,7,139,138
GROUPBOX "Applications",IDC_SGAL_APP,171,151,138,155
END
I have tried using WM_ctlcolordlg and wm_ctlcolorstatic, etc. and tried setting background mode and color to the default 3D face brush color, however nothing paints it in....
2)
I have a tab control that has a dialog box (no sys_menu or frame, just a gray box) that occupies the display area of each tab page. Each tab click hides the other page and shows the other. After each click, the group static controls all draw items from the previously displayed dialog box within them.
3) I have a toolbox control that utilizes an image list attached to the frame window (i am using an mdi architecture), but the toolbox will dissapear randomly, and i have to drag another window over it for it to show again...
I have created many many dialog boxes in my application but only these windows are giving me trouble for some reason. I feel like it may have something to do with the static group box controls...
Thanks for any help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|