|
I made it
-------------------
I am learning C++ and English
|
|
|
|
|
Thanks for the reply (you are one further than many posters that find the answer themsleves), but to make it wonderful, next time, explain also HOW you made it (for other users that may be interested by the answer)
~RaGE();
|
|
|
|
|
I found that it was one of my mistakes that made the easy problem much more complicated.
if anybody runs into the same problem, just feel free to email me, I will be happy to help you as soon as possible!
my email:
ewighell@hotmail.com
I must addmit ,I have got a lot of helps from codeproject and feel so grateful that I will try my best to help others.
-------------------
I am learning C++ and English
|
|
|
|
|
I need to put a page break in a lengthy html file for printing purpose. The html file is having information in table format (we use html table – tag). After each 66 row, I have to put a page break.. How I can do in VC++
SHADRACH
|
|
|
|
|
The obvious way would be to do the printing within your own app, and generate a new page every 66 lines. Remember, that's not 66 lines of HTML, you need to parse and look for your table row end tags.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
How to place a ToolBar created by CreateWindowEx() in a particular position on Dialog. I tried by placing a static control & then...see code
WINDOWPLACEMENT w;
::GetWindowPlacement(::GetDlgItem(m_hWnd, IDC_STATIC_TOOL), &w);
::SetWindowPlacement(hToolBarHandle, &w);
But the ToolBar displayed bit lower than the position of static control.
When I tested using MFC it placed exactly sample place that of static text
::GetWindowPlacement(::GetDlgItem(m_hWnd, IDC_STATIC_TOOL), &w);
m_Toolbar.CreateEx(this,WS_CHILD | CCS_NOPARENTALIGN|TBSTYLE_FLAT);
m_Toolbar.LoadToolBar(IDR_TOOLBAR);
::SetWindowPlacement(m_Toolbar.m_hWnd, &w);
Also in MFC the width of toolbar is same as the toolbar resource/static control where we place the toolbar. But in SDK the displayed toolbar width is higher. How to set/fix size of tool bar in SDK. What could be the trouble in Win32 SDK way? any suggestions???
|
|
|
|
|
Here's how I'd do it:
---------------------
RECT rc;
::GetWindowRect(::GetDlgItem(m_hWnd, IDC_STATIC_TOOL), &rc);
::MapWindowPoints(NULL, m_hWnd, reinterpret_cast<LPPOINT>(&rc), 2);
m_Toolbar.CreateEx(this, WS_CHILD | CCS_NOPARENTALIGN|TBSTYLE_FLAT);
m_Toolbar.LoadToolBar(IDR_TOOLBAR);
::MoveWindow(m_Toolbar.m_hWnd, &rc);
Steve
|
|
|
|
|
If it is MFC CToolBar it will work fine if we use m_ToolBar.CreateEx() & m_ToolBar.Load().
But what I am looking for is win32 only, There is no m_ToolBar.
I am creating ::CreateWindowEx(). This toolbar is not placing correctly.
|
|
|
|
|
My project needs to call Matlab function, Is it possible to make it a part of my project so that it can be run without Mablab enviroment?
Thanks in advance.
|
|
|
|
|
Check this[^] out
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi.
Ive created a toolbar in c# and ive been trying to find a way to use this in vc++. can someone please guide me as to how it can be done?
thanx.
|
|
|
|
|
you should refer to this book "Inside C#"
|
|
|
|
|
ok thanx ill try to consult the book
|
|
|
|
|
you now , there is a OLE/COM Object Viewer in MS visual c++, which can be used to view the type libaray.
I am viewing a huge type library and find it very dificult to locate a specified interface. is there a search tool or something like this to find it quickly?
Thank you very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
I normally just copy the IDL into notepad and do a text search.
Steve
|
|
|
|
|
good idea
Thank you very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
Hello!
On the graph display we have many overlapped text. Is there any good algorithms to resolve this problem, so that we have a readable layout ?
Thanks
|
|
|
|
|
if its a bar graph, draw the text vertical and not horizontal,
-Prakash
|
|
|
|
|
|
You can just cast it, because they are both the same size.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Gosh.
char * pChar;
unsigned char * pUnsigned = (unsigned char *) pChar;
If you didn't know how to do that, I recommend you read some resources on pointers.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Hi all, I want to use the STL library in my program. When I try to define the vector inside the header file, it gave me an error. Following is my program
// LMRectangle.h file //
#include <vector>
class LMRectangle
{
public:
...
private:
...
vector<vector> _vertexList;
};
The class Vector is a user-defined class. I really need this vector data structure and also other files will need the LMRectangle later, so the _vertexList has to be in the header file. Could somebody tell me a solution about this please??? Thanks very much!!!!
Asura
-- modified at 17:02 Tuesday 10th January, 2006
|
|
|
|
|
Ming Luo wrote: Hi all, I want to use the STL library in my program. When I try to define the vector inside the header file, it gave me an error. Following is my program
// LMRectangle.h file //
#include <vector>
class LMRectangle
{
public:
...
private:
...
vector _vertexList;
};
The class Vector is a user-defined class. I really need this vector data structure and also other files will need the LMRectangle later, so the _vertexList has to be in the header file. Could somebody tell me a solution about this please??? Thanks very much!!!!
You need to specify the namespace and the template parameter type.
e.g. std::vector<int> _vertexList;
Regards,
Nish
|
|
|
|