|
Hello,
When I maximize MainFrame and then the child frame, the child frame window has the colors from the Mainframe window. It is as if the background of mainframe is seen in the child window.
What must the problem ?
Priya
|
|
|
|
|
Call the UpdateWindow method on the child window after maximizing.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hello,
My Application was not having this problem on my PC but when I transferred the application it started raising this problem. Is there any problem with operating systems
Priya
|
|
|
|
|
Hello,
When I maximize a mainframe window do I have to redraw the background color of the window or set it to a particular color.Because my application behaves differently for different PC where the operating system is the same.
Priya
|
|
|
|
|
How to show selected rows in ListCtrl. I tried with following code. But it is not working.
LVITEM LvItem;
memset(&LvItem,0,sizeof(LvItem));
LvItem.mask=LVIF_TEXT;
LvItem.cchTextMax = 256;
LvItem.iItem=0;
LvItem.iSubItem=0;
LvItem.pszText="1";
::SendMessage(hwnd,LVM_INSERTITEM,0,(LONG)&LvItem);
LvItem.pszText="2";
::SendMessage(hwnd,LVM_INSERTITEM,1,(LONG)&LvItem);
LvItem.pszText="3";
::SendMessage(hwnd,LVM_INSERTITEM,3,(LONG)&LvItem);
int nCount = m_ctrlList.GetItemCount();
int nRet = m_ctrlList.SetSelectionMark(1);
|
|
|
|
|
You could try m_ctrlList.SetItemState(1, LVIS_SELECTED, LVIS_SELECTED); if that is what you are asking.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
m_ctrlList.SetItemState(1, LVIS_SELECTED, LVIS_SELECTED) function is not working
|
|
|
|
|
Have you been able to insert items into the list control?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Yes. I can able to add items in listctrl.
|
|
|
|
|
I enabled "Show Selection Always" property in resource editor.It is working.Thanks
|
|
|
|
|
Roay wrote: ...is not working
Which is anything but helpful. Did it produce a compiler/linker error? Did it throw an exception? Did it fire an assertion? What did it return?
"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
|
|
|
|
|
LVS_EX_FULLROWSELECT, I mean, use it with SetExtendedStyle().
|
|
|
|
|
m_ctrlList.SetExtendedStyle(LVS_EX_FULLROWSELECT) is not working
|
|
|
|
|
Try like:
DWORD dwStyle = m_ctrlList.GetExtendedStyle();
dwStyle |= LVS_EX_FULLROWSELECT;
m_ctrlList.SetExtendedStyle(dwStyle);
|
|
|
|
|
it should set focuse on this ListCtrl,may be focuse problem.
you can try!!
|
|
|
|
|
and then SetItemState(...).
if the focuse isn't on this control, it will not show the selected item.
|
|
|
|
|
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;
Thanks
sft
modified on Monday, April 6, 2009 1:53 PM
|
|
|
|
|
It looks self-explanatory. What part is troubling you?
"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
|
|
|
|
|
What don't you understand specifically ? The code is pretty straightforward to understand: if the call to create the view fails, the function returns -1
|
|
|
|
|
It probably means you need to read an introductory C++ book (if the syntax confuses you) or an introductory MFC book (if CView is unknown to you)
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Is the cursed number -1 , are the strange duplications of the symbols : and = , or, eventually, is the terrible uncertainity conjured up by the if keyword troubling you?
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]
|
|
|
|
|
This is funny. My copy and paste didn't work. I had few lines of code after that were causing an assertion failure...but got it to work....
sft
|
|
|
|
|
Hi,
I would like to Capture the KeyStorokes While Processing a RichEdit Multline Window
From what Object do I supply my version of Pretranslate method
is the Cwnd of the Crichedit object or the Cwnd of the Cdialog method
and the Do I have to Set the Focus before in order to this
thankx
|
|
|
|
|
Hi,
Can you please let me know,how to develope sample Add-ons(code) for MOZILLA FIRE FOX BROWSER (i.e)Browser Handler Object?
Further,please let me know the ways to load & unload them once I launch & unlaunch FIRE FOX ,and its code base.
I am using C++(Visual Studio 6.0 IDE) to develope it and MOZILLA FIRE FOX 2.0 & 3.0 as BROWSERS.
Please help.
Thanks in advance,
V.NATARAJAN
|
|
|
|
|
Please see Mozilla Development Site[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|