|
Hi,
I have several SplitterWnd with dialogbox-based FormView in my application. For a good layout i need the size in pixel of the dialogboxes (generated with the ressourceeditor) as early as possible to arrange the splitter windows.
Please help me!
|
|
|
|
|
Rolf Faßler wrote:
I have several SplitterWnd with dialogbox-based FormView in my application.
How many CSplitterWnd controls are there? Is the view in each pane derived from CFormView ?
What are you wanting the size of the panes to be based upon?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I have up to 11 SplitterWnd in my application, the panes in four of them are derived from CFormView.
|
|
|
|
|
Rolf Faßler wrote:
I have up to 11 SplitterWnd in my application...
So does this mean that you have 22 panes (I'm assuming that there are two panes per splitter window)?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Greets,
i need a idea, how i can convert a sepcific (graphic) file to a bitmap witch is based in memory.
Reason is: i can't write out a bitmap-file, and load it after writting, cause the file information have to be secure. After the bitmap staying in memory i can load, show, and destroy it. I think so?
I know the bitmap file format, and i have the informations from the specific file to fill bitmap-structure-components. So what i don't know is: witch interface can i use to open and get the specific file informations, how i can load the packed bitmap, after i fill the structure, into the memory, and how i can display this packet bitmap.
thanks for every answer
codefire
|
|
|
|
|
a BMP file is simply a BITMAPFILEHEADER followed by a DIB. so, just skip the BITMAPFILEHEADER and call StretchDIBits to display the DIB.
Software | Cleek
|
|
|
|
|
thx it run's.
|
|
|
|
|
I get this error:
'__thiscall CFile::CFile(const char *,unsigned int)' : cannot convert parameter 1 from 'const char *(void) const' to 'const char *'
when I try to do :
CFile filePort(m_outputFileName[0].c_str, CFile::modeRead);
m_outputFileName[0] is a std::string.
Will I have to strcpy m_outputFileName[0] into a char temp[256] and put that into CFile?
I'm not sure how to make the std::string behave for the CFile. Is there a simpler way?
Thanks,
sb
Added:
I get the same error if I do:
char file1[256];
strncpy ( file1, m_outputFileName[0].c_str, 256);
|
|
|
|
|
c_str()
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Aaargh! Havent dealt with std::strings much....thats my poor excuse.
Thanks so very much,
sb
|
|
|
|
|
Hi Guys,
How Can I convert a CString to a T_String.
My T_String is a typedef defined as follows.
typedef std::wstring T_String;//wstring,co's my project is unicode defined.
Thanks......
|
|
|
|
|
Just curious....
Why are you doing that? CString has already unicode support.
Jaime
|
|
|
|
|
co's I have a function which takes a T_String as parameter...
|
|
|
|
|
since CString (when UNICODE is defined) and std::wstring both are defined as an array of wchar, you could safely do:
CString sOther = _T("This is a string");
T_String s = (LPCTSTR)sOther;
Jaime
|
|
|
|
|
|
I am searchinf for information about NFS protocol. Do you know any useful link or samle ? Thanks. Satucha
|
|
|
|
|
Start here.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
hi all,
anyone konws the win32 api for knowing that who is the current logged in user? I need it for only windows nt based OSes i.e. nt, 2000, xp
thanks in advance
|
|
|
|
|
Check out the MSDN documentation for the
NetQueryDisplayInformation() API
|
|
|
|
|
thanks.
Can you tell me also any win32 API to copy a file from a folder to another folder?
thanks again.
|
|
|
|
|
Try CopyFile() , MoveFile() , SHFileOperation() , or the CFile class.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
sorry, i found the api to be CopyFile()
|
|
|
|
|
You'll want to use NetWkstaUserGetInfo() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
How can I make this (test_26_tt1) variable global;
typedef struct <br />
{<br />
unsigned short data; <br />
unsigned 4 : count<br />
unsigned 1 : fault<br />
unsigned 2 : err <br />
}TEST_26_TT1
union<br />
{<br />
TEST_26_TT1 message_data;<br />
unsigned short buffer[32];<br />
}test_26_tt1;
If it was a float then I could do
// Globally declare the variable in just before the Main section of the code
float flt1;
extern float flt1; // This would allow global use in another unit of the program.
Or should type type of data be wrapped up in a class; as they are many.
|
|
|
|
|
what problem did you have when you used the same way as float?
Jaime
|
|
|
|