|
SkyWalker, thanks for the reply
Ok, here is the deal:
ListCtrl should mimic the look and feel of the Microsoft Access table. I don't know if you're familiar with that application, but in short:
When a user filled full page with items, and he wants to enter one more item, he can scroll the whole window down, so that the first item is at the top of the window again. In CListCtrl, as it is now, you will always add items in the end of the list, or you can put extra blank items. But is not user-friendly
Now, I overrode CListView::DrawItem function, and drawing things myself. I ovverode VScroll as well, and in my VScroll handler, I can use CWnd:ScrollWindow function to scroll myself, and then DrawItem will be called by the system, to repaint only what is needed. It actually works, I checked it.
The problem is that internally, CListCtrl does not know about my changes. So, for instance, you would call ClistCtrl::InsertItem function to add an entry. CListCtrl will set rectangle coordinates for this item according to his own view of things. Or, if you want to delete an item.
And what a nightmare, if you want to sort items !
So, ClistCtrl calculates internally positions of entries, as far as I can figure out.
Of course, I could do myself all these operations, but this is like rewriting major portion of the CListCtrl class.
I want something kind of short, if possible. And this change would make deletion, insertion, and sorting work correctly.
I hope, I explained kind of clear what I've been trying to acheive
-- modified at 5:34 Tuesday 11th October, 2005
|
|
|
|
|
I'm working on a poker odds calculator. There are several for sale, but mine will only be used for personal use. It will have som functions that the others don't got.
But to the point, at the moment the cards are read when you push buttons for each one of them. I would like to make this as automatic as possible. I've never created a program that is connected to another yet, so I don't know much about this.
Many other calculators get information from the small chat window in the poker software. You can se the community cards, raises etc. How should I do to connect to the chat, and make my program to read in constantly?
And alternative nr 2, which makes it possible to read all cards, is to look at the graphics. I assume that you have to find some pixels that are unique for every card and so on, but how should I get started?
C++ Builder.
|
|
|
|
|
How does an application identify different languages supported by a single resource at runtime ?
Jim456
|
|
|
|
|
are you talking about english, french, spanish language ? or C, C++, ... language ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hi,
this question is not a VC++ question but i put it here because VC++ developers are the best.
I want to write software that uses computers on a LAN to and use there processor resourses, synchronize them, to gain a huge processing power, I may use tens to hundreds of workstations on the LAN.
Another point about sharing resourses:
when I want to share processor resourses, can I have special hooks on the system such that when I run a program( say 3dmax), the processing load will distribute on the network nodes? Can this be done???
by the way: I heared that a company created a screen saver that is used to share processing resourses (when the leaf computer is idle), all nodes are controlled by the company's computer. How could they run there own code (that did not ship with the screen server) on leaf computers???
any ideas are welcome?
Thanx All,
Mohammad Gdeisat
|
|
|
|
|
|
See Beowulf [^]
Good luck, this is a challenging topic.
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
Did you have a look at the GRID and GRID middleware software?
|
|
|
|
|
I am having a problem with the mmioOpen() method when I attempt to open a wave file which is located inside a folder which has a period in it (ex: My.Folder). Any ideas?
if( (m_hmmioFile=mmioOpen(m_szName, lpInfo,MMIO_ALLOCBUF | MMIO_READWRITE | MMIO_CREATE )) == NULL )
{
}
|
|
|
|
|
Anonymous wrote:
I am having a problem with the mmioOpen() method...
It might help to explain what the problem is. For example, what is the value of the wErrorRet member of the MMIOINFO structure?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Is there any class which loads and saves mp3s and gives you access to the audio data?
|
|
|
|
|
Hi,
I am trying to create a tree control with check boxes property set to true, but the check boxes are not visible at runtime. Also, there is so much confusing data available on Tree Control like TVS_CHECKBOXES styles etc. so its not clear. Am working with VC++ 7.0 in .NET please help!
Thanks in advance!!
|
|
|
|
|
|
Hi, This article was good! Need more help in capturing the 'check' event of the tree control(class CTreeCtrl). I am trying to check for the checked state of an item in NM_CLICK, but the check box doesnt get checked later(when does it get checked?).Please help
-- modified at 11:52 Wednesday 12th October, 2005
|
|
|
|
|
need sourecode of checkers software with neural network and genetic algorithm programmed in it in c++ language
|
|
|
|
|
ROTFL. Sure, why not. Let me just pull it out of my....
Seriously, you must be kidding. Is this homework, or for fun ? Either way, you won't learn anything by asking for the full source, and it's a hell of a thing to expect someone to just give you.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
I have a UI thread that works but I'm trying to figure out how to reliably stop the thread. The OnIdle function in the thread periodically calls WaitForSingleObject on a particular event, if it's set, it calls PostQuitMessage that we are quitting and then returns 0 to signal it doesn't need to run anymore. Half of the time this thread and the main one deadlock, sometimes I get some CResourceException and I don't trust it to stop the thread cleanly. I've read plenty on how to terminate the thread but it feels like it's not enough and doesn't always work. Does anyone have any pointers or a good way to stop the thread cleanly from outside of the thread?
|
|
|
|
|
Hi,
I use a function from a library and it is declared as a __stdcall(WINAPI) in the header file. When I use this function in my executable I get a linker error (unresolved symbol _FunctionName). The project links correctly only if I change the calling convention for the project from __cdecl to __stdcall.
Does anyone know why is this so? The header properly defines it as an __stdcall, why then do I have to change the project settings? Or am I missing something and doing something wrong?
Thanks in advance.
|
|
|
|
|
|
Actually, the third party library itself is entirely compiled with __stdcall convention and therefore the header file does not have a __stdcall for the declarations.
Now, if I am to use this library in my project, how can I re-declare the function prototypes specifying __stdcall for each of the functions. Or is there any other workaround rather than changing my project settings to __stdcall.
Thanks in advance.
/f
|
|
|
|
|
How will I be able to create a Installer of my Application. There might be some applications out there about creating your own installer but how about creating your own. Do you guys have any idea on how to create your do-it-yourself installer and be able to create shortcut icons (desktop, start menu) for your application? Just wondering if it is possible. thanx
|
|
|
|
|
It's obviously possible, any installer app does just that within a framework. I use an installer package though, there are plenty of free ones to do msi installs ( I ended up buying the full version of mine tho ) The one I use is called advanced installer.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I've tried advanced installer and found it cool, then the idea of creating my own installer interface came up.
|
|
|
|
|
There's almost never a good reason to be reinventing the wheel
Christian Graus - Microsoft MVP - C++
|
|
|
|