|
Be careful when using FindWindowEx() . It has the potential to cause a deadlock situation.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I think its good advise about FindWindow.;)
|
|
|
|
|
When i close a dialog bar using close button on dialogbar which messages get generated as i wanna resize other windows and their child controls .
Please help urgent...
do i have to override RecalcLayout function of main frame.
Thanks,
Sandip.
|
|
|
|
|
SandipG wrote: When i close a dialog bar using close button on dialogbar which messages get generated
WM_SYSCOMMAND?
This episode brought to you by the number 5
|
|
|
|
|
Hi,
I'm coding a treeview which resembles with the one in Windows Explorer.
Initially root item is Desktop and it's IShellFolder interface can be easily
retrived using SHGetDesktopFolder() function.
Can any one tell me how to get IShellFolder interface to any folder? e.g. "C:\"
Regards,
Abhijeet
---
Never look back...
|
|
|
|
|
|
This class must contain a function which return the position when it was made a change of bytes. For example if in char I have 0 0 0 1 0, the function must to return 4. If I have 0 0 0 0 0 0 1 1 1 1, the function must to return 6. Bytes are loaded from a file.txt. I want a solution, if it possible in next 2 days.
Thanks,
nickalai
|
|
|
|
|
nickalai17 wrote: I want a solution, if it possible in next 2 days.
are you asking us to do your homework ?
that's not gonna happen.
|
|
|
|
|
Your homework is due in 2 days ? Better get started, instead of trying to find someone to do it for you online. If you get stuck, you can ask us specific questions, of course.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How would you do this on paper?
1) Read the first byte, and store it in a variable.
2) Read next byte.
3) If it matches the first byte, increment counter. Go to 2.
4) If it doesn't match the first byte, stop.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I'm curious why
0 0 0 1 0
should return 4, but
0 0 0 0 0 0 1 1 1 1
should return 6...
Good luck with that
This episode brought to you by the number 5
|
|
|
|
|
How do I create a virtual serial port (e.g. COM9)?
Is building a kernel mode device driver the only way or can I create something in user mode that my applications can open and interact with as if it was a standard serial port?
Thanks
Alec
|
|
|
|
|
There are a lot of open source virtual serial port implementation, just do a google search.
|
|
|
|
|
|
I want to display a dialog in a MDI application whenever there are no more documents(or dialogs) open.
Is there a message that i can intercept when everything is closed?
|
|
|
|
|
You can enumerate the number of child frames open at any give time by using EnumChildWindows. In your particular case, you can check on close of child window (the message is WM_CLOSE) that how many windows are open. If they are 0, u can show the dialog.
"Some people believe football is a matter of life and death.
I'm very disappointed with that attitude.
I can assure you it is much, much more important than that. -- Bill Shankly"
|
|
|
|
|
|
Hi everyone,
I am using
AfxGetApp()->m_pDocManager->OnFileNew();
to generate a new file. I want to change the properties of activex control embedded in the window that i am creating, so in this case how do i get a pointer to the axtive control variable which i have defined in view class. Or can anyone suggest how to get a pointer to the window that i create through above function.
|
|
|
|
|
This[^] provided no help?
Mark
This episode brought to you by the number 5
|
|
|
|
|
Hi everyone,
I am working on an application and not getting a sfew things.
1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell.
2. How to get text from a dynamically created edit box.
i have used the Create() function for creating the listbox.
|
|
|
|
|
chaitannya_m wrote: 1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell.
It's already been done here[^]
chaitannya_m wrote:
2. How to get text from a dynamically created edit box.
You would be having the id of the control when creating it. Use GetDlgItemText.
virtual BOOL Create(
DWORD dwStyle,
const RECT& rect,
CWnd* pParentWnd,
UINT nID
);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Do you want to get text of listctrl or editbox?
|
|
|
|
|
Do you want to get text of listctrl or editbox?
-> Actually the edit box is in the list control.. so i guess i should have mentioned that earlier.
Also i have tried XlistCtrl , it too complicated. Anyone can help me out there
|
|
|
|
|
hey Frnds...
plz tell me abt InvalidateRect.
My Problem is....
I have Object say CMultiBarGraph whose area is CRECT(X1 ,Y1,X2,Y2)
in that region suppose CREct(x1,y1,x2,y2) is frequently change...
I want to draw only CRect(x1,y1,x2,y2), not Whole(X1 ,Y1,X2,Y2).
how it is achieved????????
in my CMultiBarGraph's Draw(CDC*) there are so many different routiines including CRect(x1,y1,x2,y2)..i want only this is drawn///
how performance/speeed, memory is achived...
|
|
|
|