|
How can I register a perticular extension files with my application ? It is a dialog based application, so i can't use RegisterShellFileTypes. Please tell me the other way.
|
|
|
|
|
Hi Friends
In my program contains one main window and too many child windows arranged horizontally to fill the whole main window. I like to draw a rectangle in main window. But it not seen properly, i think rectangle is painted behind the child windows. How to paint rectangle in front of child windows.
please help me !!!
thanks in advance
-RisKhan-
|
|
|
|
|
Draw Rectangle on your rootDC handle
Is this your answer?
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
Draw rectangle on your rootDC(main) handle.
Is this your answer??
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
You draw on the main window now whats your problem you cant see it?
|
|
|
|
|
Hi hamid
Actually the rectangle is shown behind the child windows. If i put a MsgBox in OnPaint i can see well.
-RisKhan-
|
|
|
|
|
Thats why i told you put it on your rootdc(main screen) handle
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
Thats why i told you put it on your rootdc(main screen) handle
Do you have check it?
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
Why you send dobule posts?
|
|
|
|
|
I dont know.
Nut when i am posting it shows some error message that message not send and when i send it again then it will be sent.
and in Message list it display two times.
Is this a website problem?
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
You can write to Suggestions and Bug Reports forum if you think its a problem for you.
|
|
|
|
|
|
|
|
Well if you dont need to child windows you can hide them?
|
|
|
|
|
I have a dll I'm trying to plug in to someone else'e code. That DLL needs to have a few functions and I want to maintain a database connection inside the DLL over multiple functions calls in to the DLL. (Connecting and disconnecting inside each function call would be wasteful and possibly too slow). So I created a global pointer and assigned the pointer in the init function call. Like this:
Init function
CConnection* Connection = new Connection;
Data Access Function
Connection is now equal to null.
Initially I though the DLL was being reloaded so I have added logging functions and it is not. Why would a DLL lose the state of it's globals? Is there something different I can try to maintain state in a DLL?
|
|
|
|
|
This [http://support.microsoft.com/kb/125677] may help you.
- Malli...!
|
|
|
|
|
My project is SDI that use multiview.
When swap view to another I also want disable the old toolbar and change to the new one.
Please advise,How can I do this.
|
|
|
|
|
CToolBar::GetToolBarCtrl()<br />
CToolBarCtrl::EnableButton(int nID, BOOL bEnable = TRUE);
Regards,
Paresh.
|
|
|
|
|
Hello, I'm using RasSetEntryProperties() to create a modem connection. But I can't using the fifth and sixth parameters to configure the device,since the parameters aren't supported by WINXP. I need to change the property of the connection to disable the hardware functions like hardware flow control. I'm developing a tool for mobile to install the drivers to PC and construct a dialer for user to surf internet throw GPRS. The mobile will be as the modem. It doesn't need hardware flow control. I haven't found the useful information in register. How can I do? Please help me, thanks a lot!
My platform: Windows XP SP2, VC++6.0
Rock
|
|
|
|
|
|
hello,
Does anyone know how to print CEdit's text?
any ideas?
thanks
|
|
|
|
|
You will get the best results and not have to worry about if the text is scrolled off the CEdit control if you get the text and use CDC::TextOut or CDC::DrawText. However, I find most people have a negative reaction to that suggestion so if your determined to literally print the CEdit to a device context, CWnd::Print should do the job.
Just be forwarned, if you don't modify something (viewport extents, windows extents, etc...) in an appropriate mapping mode, it's gonna come out really, really, tiny on your printer. The best way to save a tree is to output your print tests to an Adobe Acrobat, PrimoPDF , or that new snazzy Vista XML print driver to see the results. That way you can zoom in really, really close to verify my statement.
After that you can experiment until way after Thanksgiving trying everything you can think of to get around all the pitfalls associated with trying to print a CEdit control (reliably) in all possible contexts and scenarios until you are ready to pull your hair out.
At that point, you can go back to my first suggestion and use TextOut or DrawText and smile once again knowing you did the right thing.
|
|
|
|
|
You can get your data with GetWindowText of edit control and use of TextOut or DrawText for print it.
|
|
|
|
|
In my VS8 MFC Dialog exploratory-app, the listbox and OK buttons flicker. I've tried the Double Buffer code (http://www.codeproject.com/bitmap/drawing_without_flicker.asp[^]) like this:
void CFlickerTestDlg::OnPaint()<br />
{<br />
CPaintDC dc(this);
<br />
CRect rcClient; <br />
GetClientRect(rcClient);
<br />
CDC MemDC,*pDC;<br />
CBitmap MemBitmap;<br />
<br />
pDC = this->GetDC();
MemDC.CreateCompatibleDC(pDC);<br />
MemBitmap.CreateCompatibleBitmap(pDC,rcClient.right,rcClient.bottom);<br />
<br />
CBitmap *pOldBitmap = MemDC.SelectObject(&m_BmpTarget);<br />
<br />
pDC->BitBlt(0,0,rcClient.right,rcClient.bottom,&MemDC,0,0,SRCCOPY);
MemDC.SelectObject(pOldBitmap);<br />
}
but that didn't help, the listbox and OK buttons still flicker.
(also, I don't understand why my static image is covered up by some grey layer - but my main priority is the annoying flicker)
I've uploaded my project (255KB) here in a .zip:
http://www.webfilehost.com/?mode=viewupload&id=4066339[^]
There's a countdown timer on the bottom-right of the page that changes to a download link (I don't have any online webspace to share files so I had to resort to one of these free sharing services)
I'd be SO grateful for any help
|
|
|
|