Click here to Skip to main content
16,008,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalgethostbyname Pin
Konst26-Jul-02 3:37
Konst26-Jul-02 3:37 
GeneralRe: gethostbyname Pin
Joaquín M López Muñoz26-Jul-02 3:54
Joaquín M López Muñoz26-Jul-02 3:54 
GeneralRe: gethostbyname Pin
Konst26-Jul-02 4:04
Konst26-Jul-02 4:04 
GeneralCalendar Control Doesn't Redraw Self Pin
JennyP26-Jul-02 3:27
JennyP26-Jul-02 3:27 
GeneralRe: Calendar Control Doesn't Redraw Self Pin
perlmunger26-Jul-02 19:25
perlmunger26-Jul-02 19:25 
GeneralRe: Calendar Control Doesn't Redraw Self Pin
JennyP27-Jul-02 5:10
JennyP27-Jul-02 5:10 
GeneralRe: Calendar Control Doesn't Redraw Self Pin
perlmunger27-Jul-02 7:06
perlmunger27-Jul-02 7:06 
GeneralRe: Calendar Control Doesn't Redraw Self Pin
JennyP27-Jul-02 15:25
JennyP27-Jul-02 15:25 
perlmunger wrote:
1. Is the calendar control on the dialog bar itself? If not, where is it?
2. Have you overriden *ANY* painting/drawing methods at all. If so, which ones and what does your code look like?
3. How did you add your dialog bar to the project?
4. Is your application an MDI or SDI?


Thanks for your reply, Matt....

4. MDI.

1. The calendar control was created with the VC++6.0 dialog editor to be part of the Dialog.

2. I did override OnCreate in the DialogBar with the following. (Sorry, I couldn't get the tabs to copy over.)

int CDiagGlobalSched::OnCreate(LPCREATESTRUCT lpCreateStruct) <br />
{<br />
	if (CDialogBar::OnCreate(lpCreateStruct) == -1)<br />
		return -1;<br />
	<br />
<br />
	// Create my own controls because it's easier to have them indexed.<br />
	int i;<br />
	CRect CERectHome(245, 8, 260, 25);<br />
	CRect CPRect(245, 54, 260, 96);<br />
	CRect CERect;<br />
	DWORD BaseStyle = WS_CHILD | WS_VISIBLE;<br />
	DWORD EditStyle = BaseStyle | ES_CENTER | ES_NUMBER;<br />
	for (i=0;i<21;i++) {<br />
		CERect = CERectHome;<br />
		m_CEDayOfWeek[i].Create(EditStyle | ES_READONLY | WS_EX_STATICEDGE,<br />
			CERect, this, 2000+i);<br />
		CERect.OffsetRect(0, 23);<br />
		m_CEDate[i].Create(EditStyle | ES_READONLY | WS_EX_STATICEDGE,<br />
			CERect, this, 2100+i);<br />
		CERect.OffsetRect(0, 70);<br />
		m_CEAllocated[i].Create(EditStyle | WS_TABSTOP, CERect, this, 2200+i);<br />
		CERect.OffsetRect(0, 23);<br />
		m_CEAvailable[i].Create(EditStyle | WS_TABSTOP, CERect, this, 2300+i);<br />
<br />
		m_CPProgress[i].Create(BaseStyle | PBS_SMOOTH | PBS_VERTICAL,<br />
			CPRect, this, 2400+i);<br />
<br />
		CPRect.OffsetRect(20, 0);<br />
		CERectHome.OffsetRect(20, 0);<br />
	<br />
	}<br />
<br />
<br />
	return 0;<br />
}


3. I used the following command in my main frame's OnCreate() function:

...
if (!m_SchedDlgBar1.Create(this, IDD_GLOBAL_DLG,
CBRS_ALIGN_TOP, AFX_IDW_DIALOGBAR))
{
TRACE0("Failed to create Sched dialogbar\n");
return -1;
}
m_SchedDlgBar1.UpdateData(FALSE);
...


Any further suggestions you can give would be greatly appreciated. Thanks!


JennyP
GeneralRe: Calendar Control Doesn't Redraw Self Pin
perlmunger27-Jul-02 16:05
perlmunger27-Jul-02 16:05 
GeneralRe: Calendar Control Doesn't Redraw Self Pin
JennyP27-Jul-02 18:51
JennyP27-Jul-02 18:51 
GeneralRe: Calendar Control Doesn't Redraw Self Pin
perlmunger27-Jul-02 19:46
perlmunger27-Jul-02 19:46 
GeneralIHTMLDOMNode::put_nodeValue problem Pin
pépé26-Jul-02 3:15
pépé26-Jul-02 3:15 
Generalhelp me Pin
Anonymous26-Jul-02 3:13
Anonymous26-Jul-02 3:13 
GeneralRe: help me Pin
Tomasz Sowinski26-Jul-02 3:17
Tomasz Sowinski26-Jul-02 3:17 
GeneralRe: help me Pin
lucy26-Jul-02 3:50
lucy26-Jul-02 3:50 
GeneralRe: help me Pin
Alexandru Savescu26-Jul-02 3:58
Alexandru Savescu26-Jul-02 3:58 
GeneralXMLTextWriter, Files and a Class Library Pin
Paul Watson26-Jul-02 3:06
sitebuilderPaul Watson26-Jul-02 3:06 
GeneralRe: XMLTextWriter, Files and a Class Library Pin
Rama Krishna Vavilala26-Jul-02 3:33
Rama Krishna Vavilala26-Jul-02 3:33 
GeneralRe: XMLTextWriter, Files and a Class Library Pin
Paul Watson26-Jul-02 3:44
sitebuilderPaul Watson26-Jul-02 3:44 
GeneralRe: XMLTextWriter, Files and a Class Library Pin
Alexandru Savescu26-Jul-02 3:55
Alexandru Savescu26-Jul-02 3:55 
GeneralRe: XMLTextWriter, Files and a Class Library Pin
Paul Watson26-Jul-02 4:44
sitebuilderPaul Watson26-Jul-02 4:44 
GeneralRe: XMLTextWriter, Files and a Class Library Pin
Rama Krishna Vavilala26-Jul-02 5:12
Rama Krishna Vavilala26-Jul-02 5:12 
GeneralRe: XMLTextWriter, Files and a Class Library Pin
Paul Watson26-Jul-02 5:34
sitebuilderPaul Watson26-Jul-02 5:34 
Generaldual processor - multiple threads. Pin
Niko Tanghe26-Jul-02 1:54
Niko Tanghe26-Jul-02 1:54 
GeneralRe: dual processor - multiple threads. Pin
Tomasz Sowinski26-Jul-02 2:14
Tomasz Sowinski26-Jul-02 2:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.