|
Chandrasekharanp wrote: u can use SetWindowText().
You cannot use SMS language here, please.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
Chandrasekharanp wrote: That was not intentional
Intentional or not intentional, it simply irritates the majority of the 'grown-up' population.
I am not sending an SMS to an old peer of mine, I'm answering a query on an programming board, that hundreds of professionals from around the world read every day. So, I would be very careful on how I present myself here.
This is off-topic and I won't discuss further on this.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
void CFdView::OnDraw(CDC* pDC)
{
CFdDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
this->GetDocument()->SetTitle("your title");
}
|
|
|
|
|
u r -> sir, plz plz u don't blame...
It looks like the sms language is appreciated by the OP [^].
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]
modified on Tuesday, December 2, 2008 4:39 AM
|
|
|
|
|
CPallini wrote: It looks like the sms language is appreciated by the OP [^].
Indeed! I will never feel like answering these SMS questions. May be I'll send the reply via an SMS inztd.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
it is not working coz i will have to refer to child window first.
how can i refer to child window? i hv implmented as:
IRCNewSim* ptr1=NULL;
Markcorr* ptr2=NULL;
ptr1=(IRCNewSim*)AfxGetApp()->m_pMainWnd;
ptr2=(Markcorr*)ptr1->GetActiveWindow();
ptr2->SetWindowText("Tower1 Scanner1");
thanks
|
|
|
|
|
Waht was return value of SetWindowText?
|
|
|
|
|
appl is getting crashed and control is going into Setwindowtext
void CWnd::SetWindowText(LPCTSTR lpszString)
{
ASSERT(::IsWindow(m_hWnd));
if (m_pCtrlSite == NULL)
::SetWindowText(m_hWnd, lpszString);
else
m_pCtrlSite->SetWindowText(lpszString);
}
m_hwnd is showing as NULL
|
|
|
|
|
So I think your problem is of hwnd ptr2.
|
|
|
|
|
ok...
do u hv any other suggetion abt how can i implement this by some other method?
or can u give me some demo of this type of application?
i will b very much greatful to u
|
|
|
|
|
How did you create your child dialog?
|
|
|
|
|
child dialog means after clicking on button i will display 1 more dialog. i want to change title of this dialog at run time.
|
|
|
|
|
Are you wanting to set the window text of the 3rd dialog dynamically? In that case, you could pass it as a parameter to the constructor of the 3rd dialog class and have a string member variable initialized with that value and then call SetWindowText() in InitDialog() . That sounds viable?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
thanks Rajesh it is working now.
|
|
|
|
|
Anjali Patil wrote: ...i want to change title of this dialog(3rd dialog).
Call SetWindowText() from within its OnInitDialog() method.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi,
I have MDI application, which loads office files (word,excel,ppt) but while loading excel doc I was unable to user "Freez Panes" functionality. This is bcoz when we open any document thru MDI application, this MDI application will have its own "Window" menu with default sub menus ("New Window", "Cascade","Tile", "Arrage Icons") but it does not have "Freez Panes". I would like to know is there any way to implement such functionality.
I have tried to add another menu called "Freez Panes" but need to add functionality for it. Pls help.
Thanks
SNI
|
|
|
|
|
How to load bitmpas dynamically?
When i directly loaded into resources(IDB_BITMPA) my exe is occupying more size. Instead of that how can i load at run time from bitmap images (res\image.bmp)
|
|
|
|
|
If you're using Win32 API , you may use LoadImage [^], for instance
HANDLE hMyBmp = LoadImage(NULL, _T("res\\image.bmp"), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
On the other hand, if you're using MFC/ATL , have a look at CImage class documentation [^], the Load method looks promising.
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]
|
|
|
|
|
|
|
You can use of CImage class:
#include AtlImage.h
CImage m;
m.Load(_T(""));
....
...
|
|
|
|
|
I have a dialog-based app which runs loads at windows startup, but problem is i don't want to showing up this dialog at every startup so i need it to start hidden.Plz help me
|
|
|
|
|
What kind of a program is that? What does it do? Perhaps you don't need a windowed application then?
However, to answer your query, you may use ShowWindow(SW_HIDE);
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Thanks for reply but i want to hide only at the time of loads at windows startup.
|
|
|
|