|
hi every bdy,
does ny bdy here know how to make a cell, in MFCGridCtrl multiline. Like if the text is more than the width of the cell than it should go into the next line. I have tried using SetItemFormat nRow,0,ES_MULTILINE|ES_AUTOVSCROLL|ES_WANTRETURN) with these parameters but i doesnt seems to work. I would be really greatful if ny bdy could help me in this regard
regards,
Bilal.
Email bilal793@yahoo.com
|
|
|
|
|
|
thanks for replying ...
i hve even changed the height of the rows ... but its still not working ... i hve read the whole document of gridctrl.asp again nd looked for the words u mentioned, but they are not there ...
is it somehow possible for u to make a small application in which there is a cell with multiline ... i would reallly appreciate it
regards
Bilal
|
|
|
|
|
oh sorry ... i mean the message board there ...
try this ...
|
|
|
|
|
thanks chris ... i hve managed to solve the problem
thanks for replying and ur help ..
regards
Bilal.
|
|
|
|
|
Ok ... i'm glad that i could help you ...
But i'm not chris ... cr doesn't mean chris )
Doesn't matter ...
cr97
|
|
|
|
|
Hi,
Does anyone know of how I can create a HBITMAP resource from a bitmap file. I remember seeing some source code about this, but cannot find it anymore.
Thanks,
Pankaj
Without struggle, there is no progress
|
|
|
|
|
HBITMAP LoadBitmap(
HINSTANCE hInstance,
LPCTSTR lpBitmapName
);
~RaGE();
|
|
|
|
|
LoadImage is the SDK command you want.
hBmp = (HBITMAP)::LoadImage (NULL, "c:\test.bmp", IMAGE_BITMAP, 0,0, LR_LOADFROMFILE);
Iain.
|
|
|
|
|
I want my dialog to appear at the bottom left corner of desktop window. How can i do this ???
|
|
|
|
|
SetWindowPos() ?
Rickard Andersson8
Here is my card, contact me later!
UIN: 50302279
E-Mail: nikado@pc.nu
Interests: C++, ADO, SQL, Winsock, 0s and 1s
|
|
|
|
|
... and GetSystemMetrics for the argument of SetWindowPos();
~RaGE();
|
|
|
|
|
SetWindowPos() and MoveWindow() are but two ways.
|
|
|
|
|
Does anybody know where one can get the file formats for the tables created by database engines such as ISAM, etc.
|
|
|
|
|
|
I have looked there but the file types I am looking for aren't there. I am looking for the files created by MySQL
|
|
|
|
|
Hi,
I'm looking for (free) helper classes to support parsing strings etc. into tokens. It's nothing to complex, basically a list of name=value; %comment , but values can stretch over multiple lines, I need to switch between different separator token sets, and things like "comment token inside string", i.e.
s = "A double slash like this: // indicates a comment"; // double-slash for comment
Any ideas?
[edit] something CString-compatible would fit in perfectly..[/edit]
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
I was going to tell you to RTFsite, as there are quite a few parsers in the "General C++/MFC"[^]
section. Then I realised you aren't a newbie, so I'll be a little more polite...
I've had a quick look see there, and you should still be able to find something useful!
Iain
|
|
|
|
|
Iain Clarke wrote:
Then I realised you aren't a newbie, so I'll be a little more polite...
ouch! point taken...
Well, I was more in "does anyone know of an article (here or otherwise) that's good for my problem at hand?" mode (aka "do my work please " mode)
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
peterchen wrote:
Well, I was more in "does anyone know of an article (here or otherwise) that's good for my problem at hand?" mode (aka "do my work please " mode)
I'm too lazy to do my own work! Why do you think I'm attacking the forums!
Iain.
ps. I reckon RTFWS should replace RTFM in the new shiny internet age...
|
|
|
|
|
I've got an application, that I'd like to convert to C++ as a learning exercise.
I've got 1 dialogbox template that I'd like to use 8 times at once on the screen.
1 want 1 main windows, and to (I guess) attach these 8 windows (with a thread to control each one) to the main window.
Where can I find an example of doing this Create Main and attach stuff.
Thanks
|
|
|
|
|
With or without MFC ?
If MFC, the main window should be SDI or a dialog ?
~RaGE();
|
|
|
|
|
I don't really mind. I'd prefer straight Win32code, but really it is for learning, so MFC would also be fine.
I just would like to see an example of how to do it.
|
|
|
|
|
in MFC Version
Create your main and template resources. Create a class for each of them, CMainDlg and CTemplateDlg.
In InitInstance() , launch your maindlg with a
CMainDlg dlg;
dlg.DoModal();
In the CMainDlg::OnInitDialog()
Create your dlgs like this :
CTemplateDlg dlg1;
dlg1.Create(...);
do this for each dlg to set their special features. If they are all identical, you can create a table of 8 CDTemplateDlg and loop on them to launch them one after another.
Would be the same if the main dialog was from a doc/view architecture (SDI may be better in this case). In the CMainFrame::PreCreateWindow function, launch the 8 dialogs as explained.
In Win32, it is a little bit more complicated to get this, but it is nearly the same, except you will have to catch the Winodws messages by yourself.
~RaGE();
|
|
|
|
|
I'm really sorry.
I get what your saying, I just can't fill in the blanks.
Are there any full example projects that do this?
|
|
|
|