|
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
|
|
|
|
|
Thanks alot, you saved me!!!!
Asura
|
|
|
|
|
Hi
std::vector this notation solved the problem, but now there is another problem that because the Vector class is user-defined, in the header file, it complains that the Vector is undeclared identifier. I tried to include the Vector.h header file in this header file, but it complains that Vector class is redefined. How should I solve this problem then???
// LMRectangle.h file
#include "Vector.h"
class LMRectangle{
public:
...
private:
...
std::vector<Vector> _vertexList;
}
This is the code.
Thanks very much
Asura
Asura
|
|
|
|
|
What's there in Vector.h?
Regards,
Nish
|
|
|
|