|
SandipG wrote: SWP_SHOWWINDOW
Does the matter. I put 1 just to quickly test the functionality. What a crap. This wasted almost half an hour. Thanks for pointing it out.
|
|
|
|
|
Actually he may specify NULL as the first parameter and use the SWP_NOZORDER flag to indicate he doesn't wish to change the Z-order of the window...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Yes.. i forgot about the SWP_NOZORDER
Regards,
Sandip.
|
|
|
|
|
Being forgetful is a common...erm...what's it called...umm...sympthom by programmers, because...umm...erm...what were we talking about again?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Hello
Actually I want to have a class which supports Fonts along with colors.
For which I have a class Font derived from CFont and a member variable of type COLORREF
class Font1 :public CFont
{
public:
Font1(const Font1& F) ;
Font1(CString FontName = TIMESNEWROMAN,
int FontSize = 15,
bool Bold = false,
bool Italic = false,
bool Underline = false,
COLORREF tFontColor = RGB(0,0,255));
COLORREF FontColor;
bool operator =(const Font1& v) ;
void Heading();
virtual ~Font1();
};
I am not able to write the copy constructor for the class and cannot initialize COLORREF variable
Any ideas how should I go about writing.
Thanks
Prithaa
|
|
|
|
|
I fI were you, I wouldn't inherit from CFont but create my own class which contains a CFont and a COLORREF object. You should also remember the font settings along with the font (face name, font size, italic, ...)
As far as I remember, you won't be able to copy CFont objects because the assignement operator is not public (this was made on purpose to avoid copying CFont objects). So what you could do is only copy the font information and create your CFont object based on those informations.
|
|
|
|
|
|
Hi,
i have an Exe in the server how can i invoke exe which is in server from client....
I guess cinternetsession will do im not sure if possible please let me know....
|
|
|
|
|
Do you want to download a file from HttpServer ??
if yes then CInternetSession,CHttpConnection and CHttpFile will help u to download a file.
|
|
|
|
|
If possible can u please post one sample.....
|
|
|
|
|
Give me ur email id. I will send sample code to u.
|
|
|
|
|
Hi swapnil below is my id please the sample code to that id...
purnapradeep.n.ext@siemens.com
purna2pradeep@gmail.com
purna2_pradeep@yahoo.com
if possible Please send to all the above mail id"s or to the first two id"s....
|
|
|
|
|
If you are just wanting to download the file, use URLDownloadToFile() .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi All!!!
i'm working on MFC. using Visual studio 80 version.
On a Dialog window i've made it a colored or Bitmap or Image. And Kept Radio Button and Check Box so We need to change the color of the Check Box and Radio Button according to Dialog Displayed.
I've tried with OnCtlColor Event. but it is working for static control but remaining it's not working.
So plz do the needful.
Thanking You
tgm.arjun
|
|
|
|
|
Radio buttons and check boxes are different styles of the button control.
Read the documentation for the WM_CTLCOLORBTN message.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi I've impleted OnCtlColor Event. The Back Ground Color and text of the radio button and check box are cheanged in VS 6.0 veersion. But it is not working in VS8.0.
Mallikarjun.TG
|
|
|
|
|
Hello,
Can anyone tell me how to convert CString to char*[]?
Thanks!
|
|
|
|
|
Why ? In general, there's no reason to do that. You should instead "convert" it to a TCHAR*, and there the conversion is automatic.
Please, read this excellent article[^] and things will get much clearer for you afterwards.
|
|
|
|
|
There's no meaningful way.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Same old question.
Just try this by yourself. (Assuming your's is non-unicode)
CString cs="Do I need it?";
char temp[100];
strcpy(temp,cs);
If it complains and asks you to "convert" you something, come back here.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
An array of char pointers...why?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hello!
I have a problem with Post Data queries.I want to send a Post Data to a server.
I dont know how to use VARIANT structure.
Can you help me with simple example?
The post data is "username=&password=%D0%E5%E3%E8%F1%F2%F0%E8%F0%E0%E9+%F1%E5"
I'm using that code:
CString csAddress("about:blank");
COleVariant vtEmpty;
m_Browser.Navigate(csAddress, &vtEmpty, &vtEmpty, &vtEmpty, &vtEmpty);
|
|
|
|
|
I use the following code to create a splitter window in a function than CFrameWnd::CreateClient:
CCreateContext P;<br />
CFramWnd::CreateClient(..., CCreateContext *pContext)<br />
{<br />
P=*pContext;<br />
...<br />
}<br />
<br />
void CFrameWnd::OnAbout(...)<br />
{<br />
m_SplitterWnd.Create(...);<br />
}
When I debug it, m_SplitterWnd.Create(...) returns TRUE; but I can't still see the splitter boxes. why?
Thank you masters!
|
|
|
|
|
My MFC dialog based application has a combo box for the selection of languages.I want to change a static text on the selection of particular language.I have made resource DLLL for each language.
Can anyone tell me that how to link resource DLL with my MFC dialog based application and how to load strings from Resource DLL on selection of language from combo box.
Is there any setting also for this?
Thanks.......................
|
|
|
|
|
I am creating an ATL/WTL application in which i need to create a window.I have created the window now i need to create button, label and list view on it dynamically and attach these controls to the main window.
Also how to set color and text color on the controls and how to show an image on these control...?
i have classes for button and labels....like CMyButton....etc
Please help..?
Thanks in advance.
|
|
|
|